summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2013-01-22 08:26:35 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2013-01-22 08:26:35 +0000
commit9bbaf662bc618bbfed9c8ebda6ca972f1cac3b5c (patch)
tree7e878b50412005a273cb5e3f4998eeaf7d5362e0 /usr.sbin/relayd
parentf218f14d9c8aba4349c7094edf7a74953293eb04 (diff)
Only send a single CRLF between chunks. A second CRLF seemed to be
optional, and it worked fine with Firefox, but it didn't work with some browsers/clients like Chrome or CURL that implement the specification strictly. See RFC 2616, Section 3.6.1, for more information about Chunked Transfer Encoding. ok bluhm@ benno@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/relay_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c
index 4e6b82098ab..f2ac3d1c63e 100644
--- a/usr.sbin/relayd/relay_http.c
+++ b/usr.sbin/relayd/relay_http.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay_http.c,v 1.6 2013/01/17 20:34:18 bluhm Exp $ */
+/* $OpenBSD: relay_http.c,v 1.7 2013/01/22 08:26:34 reyk Exp $ */
/*
* Copyright (c) 2006 - 2012 Reyk Floeter <reyk@openbsd.org>
@@ -489,7 +489,7 @@ relay_read_httpchunks(struct bufferevent *bev, void *arg)
line = evbuffer_readline(src);
if (line != NULL)
free(line);
- if (relay_bufferevent_print(cre->dst, "\r\n\r\n") == -1)
+ if (relay_bufferevent_print(cre->dst, "\r\n") == -1)
goto fail;
}
}