Commit c851f00865a6e6c49c57d604a4ba99c595740960

Authored by Ferràn Quer i Guerrero
1 parent d6456a0f

--no commit message

Project/applications/smartcities/httpClient.c
@@ -104,7 +104,12 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) @@ -104,7 +104,12 @@ int httpRequest(struct httpHeaders head, char* content, int content_size)
104 netbuf_copy_partial(netBufs,response,3,9); // read 3B starting from 9th -> read response code. "HTTP/1.1 301 Moved Permanently" 104 netbuf_copy_partial(netBufs,response,3,9); // read 3B starting from 9th -> read response code. "HTTP/1.1 301 Moved Permanently"
105 printf("httpRequest: Unbelievablelybilbiyblyib successful! :D\r\nResponse code: %s\r\n",response); 105 printf("httpRequest: Unbelievablelybilbiyblyib successful! :D\r\nResponse code: %s\r\n",response);
106 int http_response = response2int(response); 106 int http_response = response2int(response);
  107 +
  108 + // alliberem Mandela i Willy
  109 + netconn_close(neocon);
  110 + netconn_delete(neocon);
107 chHeapFree(response); 111 chHeapFree(response);
  112 +
108 return http_response; 113 return http_response;
109 } 114 }
110 115