diff options
author | Joseph Henry <josephjah@gmail.com> | 2018-10-23 10:58:25 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2018-10-23 10:58:25 -0700 |
commit | 7dbccf08aeccab18be5fb24e90a6a1d89248aa3a (patch) | |
tree | f69dd002c1503840f3b755b641771417513fb6cc | |
parent | 15d0aad3c0f68197f9d2158d68340fa46f661148 (diff) | |
download | infinitytier-7dbccf08aeccab18be5fb24e90a6a1d89248aa3a.tar.gz infinitytier-7dbccf08aeccab18be5fb24e90a6a1d89248aa3a.zip |
Removed unnecessary block before get request. Possible bug fix for Synology NAS ticket #27
-rw-r--r-- | one.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -633,10 +633,6 @@ static int cli(int argc,char **argv) fprintf(stderr,"invalid network ID format, must be a 16-digit hexidecimal number\n"); return 2; } - char jsons[1024], cl[128]; - OSUtils::ztsnprintf(cl,sizeof(cl),"%u",(unsigned int)strlen(jsons)); - requestHeaders["Content-Type"] = "application/json"; - requestHeaders["Content-Length"] = cl; const unsigned int scode = Http::GET(1024 * 1024 * 16,60000,(const struct sockaddr *)&addr,"/network",requestHeaders,responseHeaders,responseBody); if (scode == 0) { |