summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver')
-rw-r--r--libvncserver/httpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncserver/httpd.c b/libvncserver/httpd.c
index 26d49af..efb97b3 100644
--- a/libvncserver/httpd.c
+++ b/libvncserver/httpd.c
@@ -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);