From: David O. <da...@qc...> - 2016-09-29 11:32:21
|
Hi, I've come across a change in behaviour on upgrading to the 4.99.12 tagged version which looks like it may be a bug - certainly it's breaking our current config. Can you help us with it? It's when we're delivering gzipped static content. Previously, a gzipped delivery of an html file would have: Content-Encoding: gzip Content-Type: text/html Since updating to 4.99.12, fastpath is delivering the gzipped content as: Content-Encoding: gzip Content-Type: application/gzip Here's the behaviour at 4.99.11: [image: Inline images 1] And at 4.99.12 [image: Inline images 2] To reproduce I do the following on Debian Jessie 8.6: hg clone -r naviserver-4.99.12 https://bitbucket.org/naviserver/naviserver cd naviserver ./autogen.sh --disable-ipv6 --with-tcl=/usr/lib/tcl8.5 --enable-rpath --enable-threads make make install Edit: /usr/local/ns/conf/nsd-config.tcl -> change port from 8080->80 -> add the following to the fastpath section ns_param gzip_static true ns_param gzip_cmd "/bin/gzip -9" ns_param gzip_refresh true Create /usr/local/ns/pages/test.html with: <html> <head> <title>Hello World</title> </head> <body> <h1>HelloWorld</h1> </body> </html> Run: gzip -c /usr/local/ns/pages/test.html > /usr/local/ns/pages/ test.html.gz Start the server /usr/local/ns/bin/nsd -c -u nsd -t /usr/local/ns/conf/nsd-config.tcl -b 0.0.0.0:80 Browse to http://myip/test.html Thanks for any help. Regards, -- David |