diff --git a/Project/applications/smartcities/httpClient.c b/Project/applications/smartcities/httpClient.c index b51c1fb..a8c8f1a 100644 --- a/Project/applications/smartcities/httpClient.c +++ b/Project/applications/smartcities/httpClient.c @@ -104,7 +104,12 @@ int httpRequest(struct httpHeaders head, char* content, int content_size) netbuf_copy_partial(netBufs,response,3,9); // read 3B starting from 9th -> read response code. "HTTP/1.1 301 Moved Permanently" printf("httpRequest: Unbelievablelybilbiyblyib successful! :D\r\nResponse code: %s\r\n",response); int http_response = response2int(response); + + // alliberem Mandela i Willy + netconn_close(neocon); + netconn_delete(neocon); chHeapFree(response); + return http_response; }