Skip to content

Commit 7488684

Browse files
authored
Merge pull request #142 from samhed/master
Write the correct length for end of header
2 parents 4c6bdcb + 21f8a8d commit 7488684

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libvncserver/httpd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
463463
contentType = "Content-Type: image/svg+xml\r\n";
464464
rfbWriteExact(&cl, contentType, strlen(contentType));
465465
/* end the header */
466-
rfbWriteExact(&cl, "\r\n", 4);
466+
rfbWriteExact(&cl, "\r\n", 2);
467467

468468
while (1) {
469469
int n = fread(buf, 1, BUF_SIZE-1, fd);

0 commit comments

Comments
 (0)