sledgehammer999
d92ef3fa4d
Fix Qt4 build.
2017-05-31 00:34:21 +03:00
Chocobo1
75f3dd6d1d
Revise Utils::Gzip::compress code
...
Change signature
Add ZLIB_CONST define to make z_stream.next_in const
Cast to zlib defined type Bytef*
Set memLevel to 9 in deflateInit2() for maximum performance
Revise compression loop
On returning false, free memory correctly by calling deflateEnd()
Reserve space by the estimation of deflateBound()
2017-05-31 00:33:50 +03:00
Chocobo1
751f64c98b
Rewrite rules for gzipping http response content
2017-05-31 00:33:49 +03:00
Chocobo1
f51e467ce3
Fix "Content-Encoding" header is always created.
...
Was side effect of operator[]
2017-05-31 00:33:47 +03:00
Chocobo1
358d182c82
Cleanup Http::responseGenerator()
...
Add CRLF definition
Rewrite loop using iterator, slightly more efficient
Rename variables
2017-05-31 00:33:47 +03:00
Chocobo1
7d2802cf2c
Demote to helper function
...
Rename function
2017-05-31 00:33:46 +03:00
Chocobo1
6ff614ebea
Send Date http header
...
It's not strict required but often expected.
change class to namespace
cleanup header
2017-05-31 00:33:44 +03:00
Chocobo1
d9f4141221
Always send Content-Length header.
...
Because without it, HTTP/1.1 (with persistence connection) clients will
keep waiting for more data.
2017-05-31 00:33:44 +03:00
Vladimir Golovnev (Glassez)
4ed4ebcdb7
Rename Core to Base ( Closes #3733 ).
2015-12-08 00:28:16 +02:00