Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPDS: Don't needlessly setup Basic auth #7372

Merged
merged 10 commits into from
Mar 2, 2021

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Mar 1, 2021

InputDialog returns empty strings, not nil. Explicitly nil username & password when they're empty to avoid enabling authentication.

Also, re #7370, explicitly request no compression. Doesn't fix the actual issue because the server doesn't obey, breaking the RFC. Most servers were already assuming no Accept-Encoding header meant that we really didn't want gzip data ;p.


This change is Reviewable

That causes us to try Basic auth, which is useless (and may or may not
be problematic for some servers).
Some servers may still refuse to obey, though.
They're breaking RFC2616 by doing so.
@hius07
Copy link
Member

hius07 commented Mar 1, 2021

Doesn't fix the actual issue

Maybe some workarounds especially for this server?
flibusta.is is blocked in Russia, this is the working mirror for them.

@Frenzie Frenzie added this to the 2021.03 milestone Mar 1, 2021
@NiLuJe
Copy link
Member Author

NiLuJe commented Mar 1, 2021

PRs welcome to handle Content-Encoding: gzip ;o).

But that server is hella broken.

(e.g., it does send a Vary: Accept-Encoding. It's obviously lying).

@hius07
Copy link
Member

hius07 commented Mar 1, 2021

On that server I cannot even get the books list, OPDS browser gives a message 'Catalog not found'.

@NiLuJe
Copy link
Member Author

NiLuJe commented Mar 1, 2021

Yep, because it's serving gzip data instead of plaintext ;).

@NiLuJe NiLuJe merged commit 0388507 into koreader:master Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants