Skip to content

remote_list: fetch it using HTTP/1.1 #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Thannoy
Copy link

@Thannoy Thannoy commented Aug 18, 2023

Useful "Host" HTTP header comes from HTTP/1.1. Using it in a HTTP/1.0 context is not valid on the paper, despite it works well for both default URLs (official and fallback github mirror). I think using HTTP/1.1 instead is saner and more likely to succeed on custom URLs.

This requires to explicitly reject keep-alive connections (default behavior starting from HTTP/1.1) , otherwise read call timeouts waiting the end of stream. Since the result HTTP request is a bit long, I made it multi-line.

Useful "Host" HTTP header comes from HTTP/1.1.
Using it in a HTTP/1.0 context is not valid,
despite it works well for both default URLs.

Also disable HTTP/1.1 default keep-alive,
otherwise read call dies in timeout.

Signed-off-by: Anthony Loiseau <anthony@loiseau.fr>
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.

1 participant