httpd: send proper MIME type for Javascript files

re #148
pull/3/head
Christian Beier 6 years ago
parent 4a21bbd097
commit de3a2f46b5
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -462,6 +462,8 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
contentType = "Content-Type: text/css\r\n";
else if(ext && strcasecmp(ext, ".svg") == 0)
contentType = "Content-Type: image/svg+xml\r\n";
else if(ext && strcasecmp(ext, ".js") == 0)
contentType = "Content-Type: application/javascript\r\n";
rfbWriteExact(&cl, contentType, strlen(contentType));
/* end the header */
rfbWriteExact(&cl, "\r\n", 2);

Loading…
Cancel
Save