Index: /trunk/zoo-project/zoo-kernel/caching.c
===================================================================
--- /trunk/zoo-project/zoo-kernel/caching.c	(revision 694)
+++ /trunk/zoo-project/zoo-kernel/caching.c	(revision 695)
@@ -277,5 +277,4 @@
 void addRequestToQueue(maps** m,HINTERNET* hInternet,const char* url,bool req){
   hInternet->waitingRequests[hInternet->nb]=strdup(url);
-  hInternet->ihandle[hInternet->nb].header=NULL;
   if(req)
     InternetOpenUrl(hInternet,hInternet->waitingRequests[hInternet->nb],NULL,0,INTERNET_FLAG_NO_CACHE_WRITE,0);
Index: /trunk/zoo-project/zoo-kernel/request_parser.c
===================================================================
--- /trunk/zoo-project/zoo-kernel/request_parser.c	(revision 694)
+++ /trunk/zoo-project/zoo-kernel/request_parser.c	(revision 695)
@@ -638,5 +638,5 @@
 			  ha[1] = "value";
 			  int hai;
-			  char *has;
+			  char *has=NULL;
 			  char *key;
 			  for (hai = 0; hai < 2; hai++)
@@ -675,11 +675,12 @@
 			      xmlFree (val);
 			    }
-			  hInternet->ihandle[hInternet->nb].header = NULL;
-			  hInternet->ihandle[hInternet->nb].header =
-			    curl_slist_append (hInternet->ihandle
-					       [hInternet->nb].header,
-					       has);
-			  if (has != NULL)
+			  if (has != NULL){
+			    hInternet->ihandle[hInternet->nb].header = NULL;
+			    hInternet->ihandle[hInternet->nb].header =
+			      curl_slist_append (hInternet->ihandle
+						 [hInternet->nb].header,
+						 has);
 			    free (has);
+			  }
 			}
 		      else
