Skip to content

Commit

Permalink
properly set file suffix for protobuffer encoded responses
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed Jan 12, 2015
1 parent e54d6bc commit 0384c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/RequestHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void RequestHandler::handle_request(const http::Request &req, http::Reply &reply
{ // pbf file
JSON::pbf_render(reply.content, json_result.values["pbf"]);
reply.headers.emplace_back("Content-Type", "application/x-protobuf; charset=UTF-8");
reply.headers.emplace_back("Content-Disposition", "inline; filename=\"response.json\"");
reply.headers.emplace_back("Content-Disposition", "inline; filename=\"response.pbf\"");
}
else if (route_parameters.jsonp_parameter.empty())
{ // json file
Expand Down

0 comments on commit 0384c21

Please sign in to comment.