Switch to http 1.0 instead of 1.1. Fixes bug #89701.

git-svn-id: svn://10.0.0.236/trunk@113128 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
curt%netscape.com 2002-01-29 19:08:12 +00:00
parent 0cb909bdd1
commit 2ce8447b0a
2 changed files with 3 additions and 3 deletions

View File

@ -259,7 +259,7 @@ nsHTTPConn::Request(int aResumePos)
memset(hdr, 0, kHdrBufSize);
if (mProxiedURL)
{
sprintf(hdr, "GET %s HTTP/1.1%s", mProxiedURL, kCRLF);
sprintf(hdr, "GET %s HTTP/1.0%s", mProxiedURL, kCRLF);
strcpy(req, hdr);
memset(hdr, 0, kHdrBufSize);
@ -284,7 +284,7 @@ nsHTTPConn::Request(int aResumePos)
}
else
{
sprintf(hdr, "GET %s HTTP/1.1%s", mPath, kCRLF);
sprintf(hdr, "GET %s HTTP/1.0%s", mPath, kCRLF);
strcpy(req, hdr);
memset(hdr, 0, kHdrBufSize);

View File

@ -563,7 +563,7 @@ main(int argc, char **argv)
DUMP(("nsSocket::Open returned: %d\n", rv));
// prepare http request str
sprintf(buf, "GET %s HTTP/1.1\r\n\r\n", argv[3]);
sprintf(buf, "GET %s HTTP/1.0\r\n\r\n", argv[3]);
bufSize = strlen(buf) + 1; // add 1 for NULL termination
// make request