Open wskorodecki opened 8 years ago
Note for contribution: Probably the easiest way to fix the bug, is to set the preference general.useragent.override with the user agent, but it will be the user agent for every opened webpages and loaded resources... Else we could see if we can intercept CONNECT request into net-log.js..
It is impossible to intercept CONNECT request in http-on-modify-request
without this patch or similar.
@laurentj What do you think about my patch? Can we use it as a temporary workaround?
I'm connecting to website via HTTPS URL. I'm also using a proxy. As far as I can see SlimerJS is correctly setting my User-Agent header and all custom headers for GET request, but not for CONNECT request (which is being used in SSL).
It can be easily checked by using Wireshark or Charles.