Changeset 458 for trunk/zoo-project/zoo-kernel/zoo_loader.c
- Timestamp:
- Mar 31, 2014, 10:50:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_loader.c
r453 r458 114 114 if(strQuery==NULL || strlen(strQuery)==0) 115 115 tmpMap=createMap("request",res); 116 }116 } 117 117 }else{ 118 118 char *buffer=new char[cgiContentLength+1]; … … 177 177 } 178 178 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 179 194 /** 180 195 * In case that the POST method was used, then check if params came in XML … … 183 198 */ 184 199 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 ){ 186 205 /** 187 206 * First include the MetaPath and the ServiceProvider default parameters
Note: See TracChangeset
for help on using the changeset viewer.