[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [liquidwar-user] patch use HTTP/1.1 rather than HTTP/0.9
From: |
Roderick Schertler |
Subject: |
Re: [liquidwar-user] patch use HTTP/1.1 rather than HTTP/0.9 |
Date: |
14 Feb 2003 09:20:08 -0500 |
You might have caught this when you merged the patch, but the version I
sent output an extra newline in a couple of cases:
diff -ur base.2.http-1.1/src/httputil.c base.3.http-newline/src/httputil.c
--- base.2.http-1.1/src/httputil.c 2003-02-07 14:32:43.000000000 -0500
+++ base.3.http-newline/src/httputil.c 2003-02-14 09:16:18.000000000 -0500
@@ -131,7 +131,7 @@
{
result = 0;
if (100 < size)
- sprintf(content,"Failed to read status line\n");
+ sprintf(content,"Failed to read status line");
}
/* make sure status code starts with 2 */
if (result && !((search = strchr(data,' ')) && search[1]=='2'))
@@ -139,7 +139,7 @@
result = 0;
if (100 + strlen(host) + strlen(data) < size)
{
- sprintf(content, "Failure from web server %s: %s\n",
+ sprintf(content, "Failure from web server %s: %s",
host,data);
}
}
--
Roderick Schertler
address@hidden