Skip to content

http: add better support for misconfigured servers#835

Merged
AkihiroSuda merged 1 commit intomoby:masterfrom
tonistiigi:http-updates
Mar 1, 2019
Merged

http: add better support for misconfigured servers#835
AkihiroSuda merged 1 commit intomoby:masterfrom
tonistiigi:http-updates

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

When testing with github source URLs I found that the http source implementation didn't cooperate very well. From tracing the requests it seems to be a server fault but made some changes to handle misbehaving servers better.

Instead of sending multipe if-none-match headers (that should be supported) now join them into a single value.

Do an extra HEAD request for detecting the unchanged etag, in case server does not actually handle the in-none-match header.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

}
}

// handle misconfigured servers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add more description about misconfiguration?

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
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.

2 participants