elazarl / goproxy

An HTTP proxy library for Go
BSD 3-Clause "New" or "Revised" License
6.06k stars 1.1k forks source link

fix: return `Connection established` instead `OK` #472

Closed hgsgtk closed 2 years ago

hgsgtk commented 2 years ago

This commit changes to return 200 Connection established instead 200 OK.

   Example of a response:

         HTTP/1.0 200 Connection established
         Proxy-agent: Netscape-Proxy/1.1

         ...data tunnelled from the server...

ref: https://datatracker.ietf.org/doc/html/draft-luotonen-web-proxy-tunneling-01#section-3.2

elazarl commented 2 years ago

Thanks!