Re: RFC2068 question : is Content-Type mandatory ?
Peter Van Biesen <[email protected]>
| Newsgroups | gmane.comp.apache.mod-proxy |
|---|---|
| Organization | VFSIPH |
| Message-ID | <[email protected]> |
OK, found a complete version of the RFC ( please don't swamp me with RTFM's :-)) ). Bottomline: if no Content-Type is present, the content-type should be application/octet-stream. I'll post a patch later. Peter. Peter Van Biesen wrote: > > Hello, > > I've run into a webserver ( www.bea.com ) that does not send the > Content-Type headerline back. Default behaviour of the proxy code is to > add "Content-Type: text/plain; charset=ISO-8859-1". However, this will > render the page in plaintext in stead of html. > > I've read the rfc but I'm not entirely sure, as I understand it, if you > send content back, Content-Type and Content-Encoding are mandatory, no ? > Anyway, if not, I'd vote to not add the text/plain line and just send > the page on to the browser without a Content-Type field. > > Could anybody confirm this for me ? > > Thank you ! > > Peter.