Skip to content

Proxy dropping 'Location:' header #253

Closed

Description

@dmitrizagidulin

Proxy is not returning the Location: header from original server. This is especially important when following 301 Moved Permanently redirects.

For example, requesting directly:

curl -v http://www4.wiwiss.fu-berlin.de/bookmashup/persons/Tim+Berners-Lee
< HTTP/1.1 301 Moved Permanently
< Location: http://wifo5-03.informatik.uni-mannheim.de/bookmashup/persons/Tim+Berners-Lee

Through proxy:

curl -vk https://localhost:8443/proxy?uri=http%3A%2F%2Fwww4.wiwiss.fu-berlin.de%2Fbookmashup%2Fpersons%2FTim%2BBerners-Lee

< HTTP/1.1 301 Moved Permanently
< X-Powered-By: Express
< Vary: Origin
< Access-Control-Allow-Credentials: true
< Access-Control-Expose-Headers: User, Location, Link, Vary, Last-Modified, Content-Length
< Date: Wed, 17 Feb 2016 20:13:13 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
<

Note that Location is in the Expose-Headers, correctly, but not actually being returned.

Activity

  1. added a commit that references this issue on Feb 18, 2016
    2c5552d
  2. self-assigned this
    on Feb 18, 2016
  3. dmitrizagidulin commented on Feb 18, 2016

    @dmitrizagidulin
    ContributorAuthor

    Tested, fixed in PR #257. (Will close as soon as that's merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions