Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes regression in first fix to issue #530

  • Loading branch information...
commit 411d4331d4bf14f672cf5294e26d177c32e3fd5e 1 parent 18aff1a
Dennis Luxen authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Plugins/TimestampPlugin.h
View
3  Plugins/TimestampPlugin.h
@@ -34,7 +34,6 @@ class TimestampPlugin : public BasePlugin {
std::string GetVersionString() const { return std::string("0.3 (DL)"); }
void HandleRequest(const RouteParameters & routeParameters, http::Reply& reply) {
std::string tmp;
- std::string JSONParameter;
//json
if("" != routeParameters.jsonpParameter) {
@@ -53,7 +52,7 @@ class TimestampPlugin : public BasePlugin {
reply.content += ",\"transactionId\":\"OSRM Routing Engine JSON timestamp (v0.3)\"";
reply.content += ("}");
reply.headers.resize(3);
- if("" != JSONParameter) {
+ if("" != routeParameters.jsonpParameter) {
reply.content += ")";
reply.headers[1].name = "Content-Type";
reply.headers[1].value = "text/javascript";
Please sign in to comment.
Something went wrong with that request. Please try again.