aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2006-01-26 10:46:14 +0000
committerGravatar "Vladimir N. Oleynik" <dzo@simtreas.ru>2006-01-26 10:46:14 +0000
commit2e33daaed522998eebf6892a6676d9739de276b0 (patch)
tree5492962de12ddca88e8a8d1dbf7d3c88ac5c430b /networking
parent546a99db1df583828963af726214181172e5d845 (diff)
downloadbusybox-2e33daaed522998eebf6892a6676d9739de276b0.tar.gz
busybox-2e33daaed522998eebf6892a6676d9739de276b0.tar.bz2
close bug 190
Diffstat (limited to 'networking')
-rw-r--r--networking/httpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 70a024bc2..63c17556f 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1008,7 +1008,7 @@ static int sendHeaders(HttpResponseNum responseNum)
/* emit the current date */
strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&timer));
len = sprintf(buf,
- "HTTP/1.0 %d %s\nContent-type: %s\r\n"
+ "HTTP/1.0 %d %s\r\nContent-type: %s\r\n"
"Date: %s\r\nConnection: close\r\n",
responseNum, responseString, mime_type, timeStr);
@@ -1325,11 +1325,11 @@ static int sendCgi(const char *url,
if (firstLine) {
rbuf[count] = 0;
/* check to see if the user script added headers */
- if(strncmp(rbuf, "HTTP/1.0 200 OK\n", 4) != 0) {
- bb_full_write(s, "HTTP/1.0 200 OK\n", 16);
+ if(strncmp(rbuf, "HTTP/1.0 200 OK\r\n", 4) != 0) {
+ bb_full_write(s, "HTTP/1.0 200 OK\r\n", 17);
}
if (strstr(rbuf, "ontent-") == 0) {
- bb_full_write(s, "Content-type: text/plain\n\n", 26);
+ bb_full_write(s, "Content-type: text/plain\r\n\r\n", 28);
}
firstLine = 0;
}