Changeset 307 for branches/branch-1.2/zoo-kernel
- Timestamp:
- Aug 11, 2011, 3:23:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1.2/zoo-kernel/service_internal.c
r301 r307 1587 1587 else{ 1588 1588 if(strncmp(tmp2->value,"text/xml",8)==0 || 1589 strncmp(tmp2->value,"application/vnd.google-earth.kml",32) !=0){1589 strncmp(tmp2->value,"application/vnd.google-earth.kml",32)==0){ 1590 1590 xmlDocPtr doc = 1591 1591 xmlParseMemory(BAD_CAST toto->value,strlen(BAD_CAST toto->value)); … … 1813 1813 else if(strcasecmp(mtype->value,"application/json")==0) 1814 1814 ext=createMap("extension","js"); 1815 else if(strncmp(mtype->value,"application/vnd.google-earth.kml",32) !=0)1815 else if(strncmp(mtype->value,"application/vnd.google-earth.kml",32)==0) 1816 1816 ext=createMap("extension","kml"); 1817 else if(strncmp(mtype->value,"image/",6)==0) 1818 ext=createMap("extension",strstr(mtype->value,"/")+1); 1817 1819 else 1818 1820 ext=createMap("extension","txt");
Note: See TracChangeset
for help on using the changeset viewer.