af620186ff
Flask's .send_file() method sends a content-disposition header based on the filename. If the filename includes non-Latin text, it adds an rfc5987 unicode filename, but does not percent-escape the commas. This causes Chromium to fail to load the image with the following error: net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION curl -v http://127.0.0.1:40000/Captura%20de%20ecr%C3%A3%202023-02-26,%20%C3%A0s%2018.33.03.png * Trying 127.0.0.1:40000... * Connected to 127.0.0.1 (127.0.0.1) port 40000 (#0) > GET /Captura%20de%20ecr%C3%A3%202023-02-26,%20%C3%A0s%2018.33.03.png HTTP/1.1 > Host: 127.0.0.1:40000 > User-Agent: curl/7.86.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Access-Control-Allow-Origin: * < Cache-Control: public, max-age=3600 < Content-Disposition: inline; filename="Captura de ecra 2023-02-26, as 18.33.03.png"; filename*=UTF-8''Captura%20de%20ecr%C3%A3%202023-02-26,%20%C3%A0s%2018.33.03.png Fixed by supplying a dummy filename. |
||
---|---|---|
.. | ||
aqt | ||
bundle | ||
icons | ||
mac | ||
tests | ||
tools | ||
.isort.cfg | ||
README.md | ||
runanki.py |
Python's Qt GUI is in aqt/