httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: [PATCH] Unbundling mod_proxy and mod_mime
Date Thu, 19 Mar 1998 21:43:37 GMT
On Fri, Mar 13, 1998 at 09:51:25AM +0100, Ralf S. Engelschall wrote:
> Now, what should we do?
> 
> I recommend to either remove the surrounding if-statement (which is clean but
> produces overhead by removing an optimization) _OR_ we change it at least to:
> 
>  if (!(r->proxyreq && 
>        (r->filename != NULL && strlen(r->filename) > 13)
>         strncasecmp(r->filename, "proxy:http://", 13) == 0) )
> 
> This way we optimize only for HTTP proxy requests which is the only situation
> where we can be really sure the we get a content-type later.

Nope. Apache doesn't _need_ to know the Content-Type for proxy:http:
requests since the response header will provide it.

Only proxy:ftp: requests will have a need for the deduction of a suitable
MIME type.

    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message