goproxy
goproxy copied to clipboard
RequestURI is empty on resp object for proxy.OnResponse
Hi,
I used for a test project (https://github.com/elazarl/goproxy/tree/master/examples/goproxy-customca).
I used the function proxy.OnRequest().DoFunc( to log the RequestURI and it's working as expected.
Whereas, on function proxy.OnResponse().DoFunc( when I try to log back using res.Request.RequestURI I have an empty string.
The only way for me to match query and answer is by adding a header "X-REQUESTURI" with the value to have it back with "OnResponse".
I can stay with that "temporary" solution but if this can be fixed, it should be better ;)
Tell me if you need more information (And thank you for the library)
Is this issue still present?