-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
"Empty" GET-Request ("GET / HTTP1.1") causes exception #228
Comments
Px is a proxy so it expects |
I used CURL just to make the issue visible. client --> nginx --> px --> company proxy Due to the fact, that the stream func of nginx cannot "manipulate" HTTP requests (e.g. add header data or route a URL-X to a URL-B) the idea is, to use instead of a stream a normal HTTP request (with Proxy-headers). An there we are: HTTP GET requests in NGINX always begins with a "\" --> nginx itself try to send this request to the local PX instance. Therefore we get an empty (or only a backslash) GET request. This is what I replayed with CURL. |
I won't claim to really understand the setup above. Is this something that is supported by HTTP or by proxies in general? Any documentation to that order will help proceed on a generic way to solve this. |
When PX gets an GET-header which is not set (or "/") although the HOST header is set, PX throws an exception.
Expected behavior: if an HOST header is set accept it as target address.
Example:
PX runs on local machine (192....:3128); requested host is example.com
Log:
Debug-Log of PX:
The text was updated successfully, but these errors were encountered: