hackney icon indicating copy to clipboard operation
hackney copied to clipboard

Add tests for relative and absolute redirect with a proxy

Open edgurgel opened this issue 8 years ago • 2 comments

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 :)

edgurgel avatar Mar 06 '16 06:03 edgurgel

:+1:

benoitc avatar Mar 07 '16 14:03 benoitc

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

benoitc avatar Aug 19 '16 09:08 benoitc