From c851f00865a6e6c49c57d604a4ba99c595740960 Mon Sep 17 00:00:00 2001 From: Ferràn Quer i Guerrero Date: Thu, 8 May 2014 08:10:00 +0000 Subject: [PATCH] --- Project/applications/smartcities/httpClient.c | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) 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; } -- libgit2 0.22.2