summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2016-12-02 14:50:40 +0100
committerGitHub <noreply@github.com>2016-12-02 14:50:40 +0100
commit74886843969527f0527aa351761e4d6864b846ac (patch)
treec96e655177d0aa90cd74b33989fb018e8c967277
parent4c6bdcb460b18c05f98144217b16dc5922b3c52e (diff)
parent21f8a8d33da3de64b268f5aa2653f46fdb688da0 (diff)
downloadlibtdevnc-74886843969527f0527aa351761e4d6864b846ac.tar.gz
libtdevnc-74886843969527f0527aa351761e4d6864b846ac.zip
Merge pull request #142 from samhed/master
Write the correct length for end of header
-rw-r--r--libvncserver/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/httpd.c b/libvncserver/httpd.c
index fe7ac22..8634b15 100644
--- a/libvncserver/httpd.c
+++ b/libvncserver/httpd.c
@@ -463,7 +463,7 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
contentType = "Content-Type: image/svg+xml\r\n";
rfbWriteExact(&cl, contentType, strlen(contentType));
/* end the header */
- rfbWriteExact(&cl, "\r\n", 4);
+ rfbWriteExact(&cl, "\r\n", 2);
while (1) {
int n = fread(buf, 1, BUF_SIZE-1, fd);