summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-16 16:12:10 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-16 16:12:10 -0700
commit1f5700191f852f84fe211f0a881f03b40cd7d371 (patch)
tree35c6cd85ce5af4eaae6ba95386dd5c0ce80c7402 /osdep
parentc4c5fa63d152fc30463babf82bff3cf1dfdb2eda (diff)
downloadinfinitytier-1f5700191f852f84fe211f0a881f03b40cd7d371.tar.gz
infinitytier-1f5700191f852f84fe211f0a881f03b40cd7d371.zip
zerotier-cli suspiciously working... that didn't hurt *too* badly.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Http.cpp2
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");