You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Omit Cookie downloads header when empty rather than empty string (#6564)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/488551667048375/task/1211033344698349?focus=true
### Description
From #6516, investigated and
found that empty `Cookie` HTTP headers are tripping up Calibre's web
server.
- Empty `Cookie` headers are legal but there are some sparse reports of
web servers failing to parse them
- Rather than an empty `Cookie` header, we can just omit sending it at
all
That fixes the problem for Calibre (and i'm sure a few other services).
Fixes#6516.
Feature flagged so we can revert to the existing behaviour if we notice
problems because of this change.
### Steps to test this PR
- [x] Test some downloads still succeed as normal (e.g.,
https://file-examples.com/)
- [ ] [Optional]:
- [ ] [install Calibre](https://calibre-ebook.com/download)
- [ ] Tap the `Connect/share` button
- [ ] `Start content server`
- [ ] Browse to the URL from the Android device running this fixed
branch, and download the sample book
Co-authored-by: Craig Russell <[email protected]>
0 commit comments