Changeset 344
- Timestamp:
- Oct 30, 2011, 9:14:19 PM (13 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r307 r344 2479 2479 fsize=res.nDataLen; 2480 2480 } 2481 if(fsize==0){ 2482 return errorException(m, _("Unable to download the file."), "InternalError"); 2483 } 2481 2484 map* tmpMap=getMapOrFill(content,"value",""); 2482 2485 free(tmpMap->value); -
trunk/zoo-project/zoo-kernel/ulinet.c
r274 r344 486 486 size_t dwRead; 487 487 InternetReadFile(res,(LPVOID)tmpValue,res.nDataLen,&dwRead); 488 fprintf(stderr,"content downloaded (%d) (%s) \n",dwRead,tmpValue); 489 if(dwRead==0){ 490 JS_SET_RVAL(cx, argv1,STRING_TO_JSVAL(JS_NewStringCopyN(cx,"Unable to access the file.",strlen("Unable to access the file.")))); 491 return JS_TRUE; 492 } 493 488 494 #ifdef ULINET_DEBUG 489 495 fprintf(stderr,"content downloaded (%d) (%s) \n",dwRead,tmpValue); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r342 r344 768 768 769 769 /** 770 * Create the input maps data structure770 * Create the input and output maps data structure 771 771 */ 772 772 int i=0; … … 986 986 } 987 987 tmpmaps->name=strdup(tmpn); 988 if(tmpv!=NULL) 989 tmpmaps->content=createMap("value",tmpv+1); 988 if(tmpv!=NULL){ 989 char *tmpvf=url_decode(tmpv+1); 990 tmpmaps->content=createMap("value",tmpvf); 991 free(tmpvf); 992 } 990 993 else 991 994 tmpmaps->content=createMap("value","Reference");
Note: See TracChangeset
for help on using the changeset viewer.