Changeset 279


Ignore:
Timestamp:
Jul 19, 2011, 6:32:59 PM (10 years ago)
Author:
djay
Message:

Add KML output MimeType? to avoid base64 encoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/service_internal.c

    r274 r279  
    15291529         || (tmp2!=NULL && (strncmp(tmp2->value,"image/",6)==0 ||
    15301530                            (strncmp(tmp2->value,"application/",12)==0) &&
    1531                             strncmp(tmp2->value,"application/json",16)!=0))) {
     1531                            strncmp(tmp2->value,"application/json",16)!=0&&
     1532                            strncmp(tmp2->value,"application/vnd.google-earth.kml",32)!=0)
     1533             )) {
    15321534        map* rs=getMap(m->content,"size");
    15331535        bool isSized=true;
     
    17681770            else if(strcasecmp(mtype->value,"application/json")==0)
    17691771              ext=createMap("extension","js");
     1772            else if(strncmp(mtype->value,"application/vnd.google-earth.kml",32)!=0)
     1773              ext=createMap("extension","kml");
    17701774            else
    17711775              ext=createMap("extension","txt");
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