Skip to content

Support 307 redirects using relative Location headers - #442

Merged
rubyist merged 2 commits into
git-lfs:masterfrom
sinbad:307-relative-location
Jun 29, 2015
Merged

rubyist merged 2 commits into
git-lfs:masterfrom
sinbad:307-relative-location

Conversation

@sinbad

@sinbad sinbad commented Jun 26, 2015

Copy link
Copy Markdown
Contributor

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.

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.
@technoweenie

Copy link
Copy Markdown
Contributor

🤘 Just needs a test. I'd be comfortable with just a go test.

Comment thread lfs/client.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this comment is unnecessary. It seems pretty clear that it's resolving a relative URL.

@sinbad

sinbad commented Jun 29, 2015

Copy link
Copy Markdown
Contributor Author

Done.

@rubyist

rubyist commented Jun 29, 2015

Copy link
Copy Markdown
Contributor

👍

rubyist added a commit that referenced this pull request Jun 29, 2015
Support 307 redirects using relative Location headers
@rubyist
rubyist merged commit 8cfb491 into git-lfs:master Jun 29, 2015
@technoweenie technoweenie self-assigned this Jul 6, 2015
This was referenced Jul 20, 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
@sinbad
sinbad deleted the 307-relative-location branch August 6, 2015 16:18
@technoweenie technoweenie removed their assignment Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants