diff options
author | Christian Beier <dontmind@freeshell.org> | 2018-10-01 20:04:00 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2018-10-01 20:04:00 +0200 |
commit | de3a2f46b5c4913ba55dfb8c6f7c8b52136bf27a (patch) | |
tree | b24037fe6d3a6882780a9c8a7802e3b425648951 /libvncserver | |
parent | 4a21bbd097ef7c44bb000c3bd0907f96a10e4ce7 (diff) | |
download | libtdevnc-de3a2f46b5c4913ba55dfb8c6f7c8b52136bf27a.tar.gz libtdevnc-de3a2f46b5c4913ba55dfb8c6f7c8b52136bf27a.zip |
httpd: send proper MIME type for Javascript files
re #148
Diffstat (limited to 'libvncserver')
-rw-r--r-- | libvncserver/httpd.c | 2 |
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); |