diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2017-04-20 10:21:40 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2017-04-20 10:21:40 -0700 |
commit | ba0d73d102e09b6d60f1d677b1e5472a25c08d42 (patch) | |
tree | af99fe3655fdc25864bc98556b73797e050ac7f4 /controller | |
parent | d3ecd1d670a77a260a2f9a62175e30e8611f58a7 (diff) | |
download | infinitytier-ba0d73d102e09b6d60f1d677b1e5472a25c08d42.tar.gz infinitytier-ba0d73d102e09b6d60f1d677b1e5472a25c08d42.zip |
Windows build fixes.
Diffstat (limited to 'controller')
-rw-r--r-- | controller/JSONDB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/JSONDB.cpp b/controller/JSONDB.cpp index afc0631d..007e0fec 100644 --- a/controller/JSONDB.cpp +++ b/controller/JSONDB.cpp @@ -64,7 +64,7 @@ bool JSONDB::writeRaw(const std::string &n,const std::string &obj) Utils::snprintf(tmp,sizeof(tmp),"%lu",(unsigned long)obj.length()); reqHeaders["Content-Length"] = tmp; reqHeaders["Content-Type"] = "application/json"; - const unsigned int sc = Http::PUT(1048576,ZT_JSONDB_HTTP_TIMEOUT,reinterpret_cast<const struct sockaddr *>(&_httpAddr),(_basePath+"/"+n).c_str(),reqHeaders,obj.data(),obj.length(),headers,body); + const unsigned int sc = Http::PUT(1048576,ZT_JSONDB_HTTP_TIMEOUT,reinterpret_cast<const struct sockaddr *>(&_httpAddr),(_basePath+"/"+n).c_str(),reqHeaders,obj.data(),(unsigned long)obj.length(),headers,body); return (sc == 200); } else { const std::string path(_genPath(n,true)); |