Commit 182006a5 authored by fred's avatar fred
Browse files

fix http api

parent 0d15fad3
......@@ -429,7 +429,7 @@ void Api_payload::receive_http_payload()
case BODY:
if (!bodyMessage.isEmpty()) break;
if (zerogw["X-payload-mime"] == "json")
/* if (zerogw["X-payload-mime"] == "json")
{
BSONObj data;
try {
......@@ -459,8 +459,8 @@ void Api_payload::receive_http_payload()
{
bodyMessage = buildResponse("error", "JSON not valid");
}
}
else if (!zerogw["X-payload-filename"].isEmpty() && zerogw["X-payload-mime"] != "json")
}*/
if (!zerogw["X-payload-filename"].isEmpty() && zerogw["X-payload-mime"] != "json")
{
key = "gfs_id";
......@@ -502,7 +502,7 @@ void Api_payload::receive_http_payload()
}
}
// not a json or binary
// not a binary
else
{
payload_builder.append("gridfs", false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment