Ignore:
Timestamp:
Mar 31, 2014, 10:50:26 PM (10 years ago)
Author:
djay
Message:

Fix some issue in background execution on windows platform (basic array and xlink). Fix issue #89.

File:
1 edited

Legend:

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

    r453 r458  
    114114         if(strQuery==NULL || strlen(strQuery)==0)
    115115           tmpMap=createMap("request",res);
    116        }
     116            }
    117117    }else{
    118118      char *buffer=new char[cgiContentLength+1];
     
    177177  }
    178178
     179#ifdef WIN32
     180  map *tmpReq=getMap(tmpMap,"rfile");
     181  if(tmpReq!=NULL){
     182    FILE *lf=fopen(tmpReq->value,"r");
     183    fseek(lf,0,SEEK_END);
     184    long flen=ftell(lf);
     185    fseek(lf,0,SEEK_SET);
     186    char *buffer=(char*)malloc((flen+1)*sizeof(char));
     187    fread(buffer,flen,1,lf);
     188    fclose(lf);
     189    addToMap(tmpMap,"request",buffer);
     190    free(buffer);
     191    cgiContentLength=flen+9;
     192  }
     193#endif
    179194  /**
    180195   * In case that the POST method was used, then check if params came in XML
     
    183198   */
    184199  if(strncasecmp(cgiRequestMethod,"post",4)==0 ||
    185      (count(tmpMap)==1 && strncmp(tmpMap->value,"<",1)==0)){
     200     (count(tmpMap)==1 && strncmp(tmpMap->value,"<",1)==0)
     201#ifdef WIN32
     202     ||tmpReq!=NULL
     203#endif
     204     ){
    186205    /**
    187206     * First include the MetaPath and the ServiceProvider default parameters
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