Write the correct length for end of header

Fix for commit 65106d3962
pull/1/head
Samuel Mannehed 6 years ago
parent 4c6bdcb460
commit 21f8a8d33d
  1. 2
      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);

Loading…
Cancel
Save