Repository navigation
Support 307 redirects using relative Location headers - #442
Merged
Merged
Conversation
Relative Location headers are valid and are more convenient for some servers which aren't aware of the original request (e.g. load balancers) without checking for other headers which can vary per routing system. git-lfs should just support relative Location responses.
Contributor
|
🤘 Just needs a test. I'd be comfortable with just a go test. |
Contributor
There was a problem hiding this comment.
I think this comment is unnecessary. It seems pretty clear that it's resolving a relative URL.
Contributor
Author
|
Done. |
Contributor
|
👍 |
rubyist
added a commit
that referenced
this pull request
Jun 29, 2015
Support 307 redirects using relative Location headers
rubyist
added a commit
that referenced
this pull request
Jul 22, 2015
technoweenie
added a commit
that referenced
this pull request
Jul 22, 2015
Backport #442 for v0.5.x: Support 307 redirects using relative Location headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently if a server responds with a 307 on POST and the Location header is relative, the re-post fails.
Relative Location headers are valid and are more convenient for some servers which aren't aware of the original request (e.g. load balancers) without checking for other headers which can vary per routing system. git-lfs should just support relative Location responses.