Use CRLF in http proxy request for some stringent servers

git-svn-id: file:///home/svn/framework3/trunk@6206 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2009-02-05 21:29:15 +00:00
parent 092db8229c
commit a49c339a9a
1 changed files with 1 additions and 1 deletions

View File

@ -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"