Skip to content
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

Support proxying 301 redirects #350

Closed
vojtajina opened this issue Feb 13, 2013 · 2 comments
Closed

Support proxying 301 redirects #350

vojtajina opened this issue Feb 13, 2013 · 2 comments

Comments

@vojtajina
Copy link
Contributor

Proxy should rewrite "Location" header.

It might be implemented inside https://github.com/nodejitsu/node-http-proxy, however it does not have the information about the hostname, so we would have to pass it in as a config option.

Based on https://groups.google.com/forum/?fromgroups=#!searchin/testacular/django/testacular/kLqUOWqD3As/UP0fzADkuQIJ

@vojtajina
Copy link
Contributor Author

Directly:

curl -I localhost:9090/search
HTTP/1.0 301 MOVED PERMANENTLY
Date: Wed, 13 Feb 2013 13:11:55 GMT
Server: WSGIServer/0.1 Python/2.7.1
Content-Type: text/html; charset=utf-8
Location: http://localhost:9090/search/

Through Testacular:

$ curl -I localhost:9876/search
HTTP/1.1 301 Moved Permanently
date: Wed, 13 Feb 2013 13:11:50 GMT
server: WSGIServer/0.1 Python/2.7.1
content-type: text/html; charset=utf-8
location: http://localhost:9090/search/
Connection: keep-alive

@vojtajina
Copy link
Contributor Author

Closing, duplicate of https://github.com/testacular/testacular/issues/127

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

No branches or pull requests

1 participant