- Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Description
Hi,
I've ran into an issue while querying osrm-routed with latest master build (using boost::beast) using Python Requests library.
It seems the Content-Encoding: deflate has a bug, strangely enough it also seems it is the default encoding of Python Requests library.
requests.get(osrm_url) requests.get(osrm_url, headers={"Accept-Encoding":"deflate"}) cause an error, specifically
ContentDecodingError: ('Received response with content-encoding: deflate, but failed to decode it.', error('Error -3 while decompressing data: invalid block type')) while
requests.get(osrm_url, headers={"Accept-Encoding":""}) requests.get(osrm_url, headers={"Accept-Encoding":"gzip"}) successfully respond with http 200.
Could it be that
osrm-backend/src/server/connection.cpp
Line 224 in e7185b4
| std::vector<char> Connection::compress_buffers(const std::vector<char> &uncompressed_data, |
is encoding it wrong?
Metadata
Metadata
Assignees
Labels
No labels