Changeset 695 for trunk/zoo-project


Ignore:
Timestamp:
Jun 29, 2015, 2:39:05 PM (9 years ago)
Author:
djay
Message:

Do not set header to NULL in addRequestToQueue, it should already contain a curl_slist. This fix issue for both Body and BodyReference?.

Location:
trunk/zoo-project/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/caching.c

    r642 r695  
    277277void addRequestToQueue(maps** m,HINTERNET* hInternet,const char* url,bool req){
    278278  hInternet->waitingRequests[hInternet->nb]=strdup(url);
    279   hInternet->ihandle[hInternet->nb].header=NULL;
    280279  if(req)
    281280    InternetOpenUrl(hInternet,hInternet->waitingRequests[hInternet->nb],NULL,0,INTERNET_FLAG_NO_CACHE_WRITE,0);
  • trunk/zoo-project/zoo-kernel/request_parser.c

    r680 r695  
    638638                          ha[1] = "value";
    639639                          int hai;
    640                           char *has;
     640                          char *has=NULL;
    641641                          char *key;
    642642                          for (hai = 0; hai < 2; hai++)
     
    675675                              xmlFree (val);
    676676                            }
    677                           hInternet->ihandle[hInternet->nb].header = NULL;
    678                           hInternet->ihandle[hInternet->nb].header =
    679                             curl_slist_append (hInternet->ihandle
    680                                                [hInternet->nb].header,
    681                                                has);
    682                           if (has != NULL)
     677                          if (has != NULL){
     678                            hInternet->ihandle[hInternet->nb].header = NULL;
     679                            hInternet->ihandle[hInternet->nb].header =
     680                              curl_slist_append (hInternet->ihandle
     681                                                 [hInternet->nb].header,
     682                                                 has);
    683683                            free (has);
     684                          }
    684685                        }
    685686                      else
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png