When combining `Accept-Encoding: deflate, gzip` and `Range: bytes=0-524281` as request headers, the response, both gzipped and limited to the range, is returned with a missing `Content-Encoding` header.
This causes Curl and other clients to fail to decode the response.
We have seen this with multiple LiteSpeed powered domains, and so believe this is related to LiteSpeed, or how it interacts with other proxy components.
( referenced from https://developers.facebook.com/bugs/335400146618351/ )
This causes Curl and other clients to fail to decode the response.
Code:
oyvind-mbp:~ oyvind$ curl -v -A "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" -H "Range: bytes=0-524281" --compressed "http://modernpracticality.com/"
* Adding handle: conn: 0x7fe42c003a00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fe42c003a00) send_pipe: 1, recv_pipe: 0
* About to connect() to modernpracticality.com port 80 (#0)
* Trying 173.248.188.234...
* Connected to modernpracticality.com (173.248.188.234) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
> Host: modernpracticality.com
> Accept: */*
> Accept-Encoding: deflate, gzip
> Range: bytes=0-524281
>
< HTTP/1.1 206 Partial Content
< Date: Fri, 01 Aug 2014 04:50:32 GMT
* Server LiteSpeed is not blacklisted
< Server: LiteSpeed
< Accept-Ranges: bytes
< Connection: Keep-Alive
< Keep-Alive: timeout=5, max=100
< Last-Modified: Fri, 01 Aug 2014 04:48:10 GMT
< Content-Type: text/html
< X-Pingback: http://modernpracticality.com/xmlrpc.php
< Vary: Accept-Encoding, Cookie
< Content-Range: bytes 0-26570/26571
< Content-Length: 26571
( referenced from https://developers.facebook.com/bugs/335400146618351/ )
Last edited by a moderator: