diff options
Diffstat (limited to 'osdep/Http.cpp')
-rw-r--r-- | osdep/Http.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/Http.cpp b/osdep/Http.cpp index 57efc556..1abf4903 100644 --- a/osdep/Http.cpp +++ b/osdep/Http.cpp @@ -209,7 +209,7 @@ unsigned int Http::_do( handler.lastActivity = OSUtils::now(); try { - handler.writeSize = Utils::snprintf(handler.writeBuf,sizeof(handler.writeBuf),"GET %s HTTP/1.1\r\n",path); + handler.writeSize = Utils::snprintf(handler.writeBuf,sizeof(handler.writeBuf),"%s %s HTTP/1.1\r\n",method,path); for(std::map<std::string,std::string>::const_iterator h(requestHeaders.begin());h!=requestHeaders.end();++h) handler.writeSize += Utils::snprintf(handler.writeBuf + handler.writeSize,sizeof(handler.writeBuf) - handler.writeSize,"%s: %s\r\n",h->first.c_str(),h->second.c_str()); handler.writeSize += Utils::snprintf(handler.writeBuf + handler.writeSize,sizeof(handler.writeBuf) - handler.writeSize,"\r\n"); |