You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@hyperreal.com> on 1995/08/10 18:16:11 UTC

Re: AddType bug (?)

 
> Hi,
> 	I am using apache 8.8 (great software). One small thing I noticed
> was that when I use
> 
> AddType text/html;charset=x-isiri-3342  .isi
> 
> Note that I want to specify character set also, the server stops at
> the ';' and the browser only sees 
> 
> text/html
> 
> and not 
> 
> text/html;charset=x-isiri-3342
> 
> This worked with servers like the CERN. I was wondering if there was 
> any reason why we did not echo up to the white space, and  stopped
> at  the ';'.

It's a bug, which tries to compensate for an Arena bug... here's
a fix,

(
BTW, if you put text/html; charset=x-isiri-3342  inside ""s, the
spaces are allowed.

e.g.

AddType "text/html; charset=x-isiri-3342" .isi
)



*** http_protocol.c.old	Thu Aug 10 10:10:13 1995
--- http_protocol.c	Thu Aug 10 10:05:50 1995
***************
*** 461,466 ****
--- 461,470 ----
       * as a MIME type, so we have to strip off the parms.
       */
  
+ #ifndef ARENA_BUG_WORKAROUND
+     return content_type;
+ #else
+ 
      char *cp = strchr(content_type, ';');
  
      if (cp) {
***************
*** 473,478 ****
--- 477,483 ----
      }
  
      return content_type;
+ #endif
  }
  
  void send_http_header(request_rec *r)





regards,
rob