Closed smalot closed 6 years ago
suggest (Server.php line 188):
// End. $content = $psrResponse->getBody()->getContents(); if (!empty($request->header['accept-encoding'])) { $encoding = explode(',', str_replace(' ', '', $request->header['accept-encoding'])); if (in_array('gzip', $encoding, true)) { $response->gzip(1); } elseif (in_array('deflate', $encoding, true)) { $response->header('content-encoding', 'deflate'); $content = gzdeflate($content); } } $response->end($content);
I think you'll find something better ...
PR: https://github.com/igniphp/framework/pull/17
Awesome !!! Many thanks
You are welcome :)
suggest (Server.php line 188):
I think you'll find something better ...