app-restconsole
app-restconsole copied to clipboard
Header Accept-Language is sent even though it is not defined.
Recently we had a problem with a website that was giving fatal errors because it was depending on Accept-Language being set. Reproducing it was easy by doing a request with just the Host and HTTP version definition.
We already knew the problem (luckily, or this might have taken us a bit longer) but we couldn't reproduce the result with the Rest console. Opening Wireshark to capture the real request we found out that the Accept-Language header was being sent regardless of the setting we put in.
- Using Windows 7 / Chrome 19.something (beta channel) (it updated itself now it refuses to tell me)
- REST Console 4.0.2
Reproduction steps:
- Get WireShark, configure to capture from the ethernet card you're using to connect to the internet
- Filter requests on http outbound only (press filter button, ctrl+f & type http, you can configure a true/false condition for http GET)
- Prepare a GET request with nothing set in REST console, other than a url to send it to, and Host.
- Send request, and find it back in Wireshark
- Inspecting the headers you will find the Accept-Languages header has been sent regardless of the setting being disabled / empty