Hi everyone.
I have added a http front end for my existing proxy system ( i also have a socks5 front end using the same connection multiplexing logic)
When I use curl both regular http endpoints and https ones through CONNECT verb works just fine, however, when I try to use it in browser I get ERR_EMPTY_RESPONSE while socks version working just fine.
I could not find the exact specs of http proxy (seems its somewhere inside of http spec itself). What I am doing is simply if the verb is something other than connect sending the entire thing to the remote server and returning response to the client.
if it is connect then I return a 200 response to the client then start proxyying actual user-encrypted payload.
Is there any additional step that browser requires and i am missing ? Any ideas?