Skip to content

Commit

Permalink
Set HTTP Accept-Encoding header (#474)
Browse files Browse the repository at this point in the history
We can deal with gzip content encoding, and the Finish national railway
GTFS-RT feed insists on that.

Fixes #473.
  • Loading branch information
vkrause authored Mar 9, 2024
1 parent 8455e30 commit f94be27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/module/src/context/motis_http_req.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct http_request_executor
net::http::client::method_to_str(req.req_method),
fmt::streamed(req.address));
request_url_ = req.address;
req.headers["Accept-Encoding"] = "gzip";

auto cb = [self = shared_from_this()](auto&& a,
net::http::client::response&& res,
Expand Down

0 comments on commit f94be27

Please sign in to comment.