Branch: Tag:

2004-04-14

2004-04-14 14:24:51 by Martin Stjernholm <mast@lysator.liu.se>

Minor fix in handling of the content type in a response mapping.

Rev: server/base_server/prototypes.pike:1.83
Rev: server/protocols/http.pike:1.429

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.428 2004/04/13 18:33:40 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.429 2004/04/14 14:24:49 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1568:    }       if(file->type == "raw") file->raw = 1; -  else if(!file->type) file->type="text/plain"; +     }       if(!file->raw && (prot != "HTTP/0.9"))
1756:    head_string = output_encode( head_string, 0, charset )[1];    conf->hsent += strlen(head_string);    } +  else +  if(!file->type) file->type="text/plain";   #if 0    REQUEST_WERR(sprintf("HTTP: Sending result for prot:%O, method:%O, file:%O",    prot, method, file));