diff Core/HttpServer/MongooseServer.cpp @ 207:7f74209ea0f8

RestApi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 16:23:11 +0100
parents 93e1b0e3b83a
children 1ac3aacd10a5
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Wed Nov 28 12:03:18 2012 +0100
+++ b/Core/HttpServer/MongooseServer.cpp	Wed Nov 28 16:23:11 2012 +0100
@@ -489,7 +489,8 @@
       {
         HttpHandler::ParseGetQuery(arguments, request->query_string);
       }
-      else if (!strcmp(request->request_method, "POST"))
+      else if (!strcmp(request->request_method, "POST") ||
+               !strcmp(request->request_method, "PUT"))
       {
         HttpHandler::Arguments::const_iterator ct = headers.find("content-type");
         if (ct == headers.end())