Changeset 458 for trunk/zoo-project/zoo-kernel/service_internal.c
- Timestamp:
- Mar 31, 2014, 10:50:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r453 r458 287 287 } 288 288 if(getMapFromMaps(conf,"lenv","status")!=NULL){ 289 fprintf(stderr,"STATUS RETURNED : %s\n",status);290 289 if(status!=NULL){ 291 290 setMapInMaps(conf,"lenv","status",status); … … 1641 1640 (strncmp(tmp2->value,"application/",12)==0) && 1642 1641 strncmp(tmp2->value,"application/json",16)!=0&& 1642 strncmp(tmp2->value,"application/x-javascript",24)!=0&& 1643 1643 strncmp(tmp2->value,"application/vnd.google-earth.kml",32)!=0) 1644 1644 )) { … … 2004 2004 map *tmp3=getMapFromMaps(m,"main","serverAddress"); 2005 2005 char *file_url; 2006 if(strncasecmp(tmp2->value,"http://",7)==0){ 2007 file_url=(char*)malloc((strlen(tmp2->value)+strlen(file_name))*sizeof(char)); 2006 if(strncasecmp(tmp2->value,"http://",7)==0 || 2007 strncasecmp(tmp2->value,"https://",8)==0){ 2008 file_url=(char*)malloc((strlen(tmp2->value)+strlen(file_name)+2)*sizeof(char)); 2008 2009 sprintf(file_url,"%s/%s",tmp2->value,file_name); 2009 2010 }else{ 2010 file_url=(char*)malloc((strlen(tmp3->value)+strlen(tmp2->value)+strlen(file_name) )*sizeof(char));2011 file_url=(char*)malloc((strlen(tmp3->value)+strlen(tmp2->value)+strlen(file_name)+3)*sizeof(char)); 2011 2012 sprintf(file_url,"%s/%s/%s",tmp3->value,tmp2->value,file_name); 2012 2013 }
Note: See TracChangeset
for help on using the changeset viewer.