about summary refs log tree commit homepage
path: root/http.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-22 23:11:49 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-23 01:57:19 +0000
commitfe1e1200c1541676e6b8402b7972a16105a76a63 (patch)
tree1ae0addce5d4cef8985ca859c33ef78c4d763751 /http.c
parent1199492dd1adb394cf4cc0d599e7f77c52ccbdbf (diff)
downloadcmogstored-fe1e1200c1541676e6b8402b7972a16105a76a63.tar.gz
This was inherited from a server which needed to deal with
some broken clients, MogileFS does not have this problem.
Neither Perlbal nor nginx set this response header, either,
so lets save ourselves a few bytes.
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/http.c b/http.c
index 2f3b29b..3ec62a6 100644
--- a/http.c
+++ b/http.c
@@ -480,8 +480,6 @@ void mog_http_resp0(struct mog_fd *mfd, struct iovec *status, bool alive)
 #define CPY(str) mempcpy(dst, (str),(sizeof(str)-1))
         dst = CPY("HTTP/1.1 ");
         dst = mempcpy(dst, status->iov_base, status->iov_len);
-        dst = CPY("\r\nStatus: ");
-        dst = mempcpy(dst, status->iov_base, status->iov_len);
         dst = CPY("\r\nDate: ");
         now = mog_now();
         dst = mempcpy(dst, now->httpdate, sizeof(now->httpdate)-1);