From 7dbccf08aeccab18be5fb24e90a6a1d89248aa3a Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Tue, 23 Oct 2018 10:58:25 -0700 Subject: Removed unnecessary block before get request. Possible bug fix for Synology NAS ticket #27 --- one.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'one.cpp') diff --git a/one.cpp b/one.cpp index 0b18ed91..abe8bb37 100644 --- a/one.cpp +++ b/one.cpp @@ -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) { -- cgit v1.2.3