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