You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Greg Ames <gr...@us.ibm.com> on 1999/11/03 20:49:56 UTC

[PATCH] EBCDIC conversion - .gif error 404

This patch corrects a bug in my last patch for Apache 1.3.10 EBCDIC
conversion.  I was calling ap_checkconv() too early in the
default_handler.  That call decides whether conversion is necessary
based on content_type.  The problem is that if a request fails for a
file type that doesn't need conversion (i.e. a non-existant .gif or .jpg
is requested), the error paths can switch the content_type to something
that does need conversion, like text/html, but the EBCDIC conversion
flag isn't changed.  This results in the server sending an error message
coded in EBCDIC, which is rather hard to read on an ASCII browser.

Greg Ames  - gregames@us.ibm.com