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

Add tests for relative and absolute redirect with a proxy #290

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edgurgel
Copy link
Collaborator

@edgurgel edgurgel commented Mar 6, 2016

Add absolute and relative redirect tests using a proxy

I'm getting this message for the relative:

127.0.0.1:64644: ProtocolException("Error in HTTP connection: HttpException('Invalid HTTP request form (expected: authority or absolute, got: relative)',)",)
in function hackney_integration_tests:'-relative_redirect_request_follow_with_proxy/0-fun-0-'/2 
**error:{assertEqual,[{module,hackney_integration_tests},
              {line,134},
              {expression,"StatusCode"},
              {expected,200},
              {value,400}]}
  output:<<"">>

I'm not mitmproxy master so please double check if I'm using it correctly :)

@benoitc
Copy link
Owner

benoitc commented Mar 7, 2016

👍

@benoitc
Copy link
Owner

benoitc commented Aug 19, 2016

@edgurgel this error means we are returning a relative url somewhere on redirect. Which shouldn't happen ...

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.

None yet

2 participants