Use CRLF in http proxy request for some stringent servers
git-svn-id: file:///home/svn/framework3/trunk@6206 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
092db8229c
commit
a49c339a9a
|
@ -241,7 +241,7 @@ class Rex::Socket::Comm::Local
|
|||
#$stdout.print("PROXY\n")
|
||||
case type.downcase
|
||||
when 'http'
|
||||
setup = "CONNECT #{host}:#{port} HTTP/1.0\n\n"
|
||||
setup = "CONNECT #{host}:#{port} HTTP/1.0\r\n\r\n"
|
||||
size = sock.put(setup)
|
||||
if (size != setup.length)
|
||||
raise ArgumentError, "Wrote less data than expected to the http proxy"
|
||||
|
|
Loading…
Reference in New Issue