reformat source file Server/RequestHandler.cpp
This commit is contained in:
parent
1980cc007f
commit
8f7f1e2683
@ -112,7 +112,8 @@ void RequestHandler::handle_request(const http::Request &req, http::Reply &reply
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set headers
|
// set headers
|
||||||
reply.headers.emplace_back("Content-Length", UintToString(static_cast<unsigned>(reply.content.size())));
|
reply.headers.emplace_back("Content-Length",
|
||||||
|
UintToString(static_cast<unsigned>(reply.content.size())));
|
||||||
if ("gpx" == route_parameters.output_format)
|
if ("gpx" == route_parameters.output_format)
|
||||||
{ // gpx file
|
{ // gpx file
|
||||||
reply.headers.emplace_back("Content-Type", "application/gpx+xml; charset=UTF-8");
|
reply.headers.emplace_back("Content-Type", "application/gpx+xml; charset=UTF-8");
|
||||||
|
Loading…
Reference in New Issue
Block a user