Ignore:
Timestamp:
Oct 28, 2012, 2:09:47 PM (12 years ago)
Author:
djay
Message:

Print specific headers when a [headers] section was added to the main.cfg file (can add headers such as X-Powered-By for instance). Handle reading file in cache as binary (solving file size not corresponding for text files).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_loader.c

    r364 r375  
    8585  if(strncmp(cgiContentType,"text/xml",8)==0 ||
    8686     strncasecmp(cgiRequestMethod,"post",4)==0){
     87    //fprintf(stderr,"length %d\n",cgiContentLength);
    8788    if(cgiContentLength==NULL){
    8889       cgiContentLength=0;
     
    112113        buffer[cgiContentLength]=0;
    113114        tmpMap=createMap("request",buffer);
    114         fprintf(stderr,"%s\n",tmpMap->value);
     115        //fprintf(stderr,"%s\n",tmpMap->value);
    115116      }else{
    116117        buffer[0]=0;
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