We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6f78b2 commit 1546b02Copy full SHA for 1546b02
api/src/multiaccess/memberbooth.py
@@ -123,7 +123,10 @@ def get_label_qr_code_url(label_id: int) -> str:
123
# Uppercase scheme and netloc
124
new_url = urlunparse(
125
(
126
- parsed.scheme.upper(),
+ # Uppercase scheme and netloc, as they are case-insensitive
127
+ # Also replace HTTPS with HTTP. There will be a redirect to HTTPS anyway, using fewer
128
+ # characters means we can get away with a smaller QR code.
129
+ parsed.scheme.upper().replace("HTTPS", "HTTP"),
130
parsed.netloc.upper(),
131
parsed.path, # Note: makeradmin may be hosted in a subdirectory, so we cannot necessarily uppercase the whole path
132
parsed.params,
0 commit comments