turbo icon indicating copy to clipboard operation
turbo copied to clipboard

HTTPClient gzip support

Open clandmeter opened this issue 9 years ago • 3 comments

According to the docs, httpdclient should support gzip data:

use_gzip - Use gzip compression. Default is true.

I am hosting a few larger json files which are gzipped, and while they open correctly in the browser (after making some changes to my lighttpd config) these files are fetched by httpclient, but the resulting body is still gzipped json.

Am I doing something wrong here?

clandmeter avatar Dec 11 '15 13:12 clandmeter

Its not supported, but the option is there. Sorry. Its pretty simple to implement though...

kernelsauce avatar Dec 12 '15 17:12 kernelsauce

no problem, I'm currently using lua zlib to do the decompression.

clandmeter avatar Dec 14 '15 10:12 clandmeter

I am also interested in client gzip support as turbolua here uploads some bigger json which could be compressed very well.

Thomas12 avatar Oct 17 '16 12:10 Thomas12