DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41960>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41960 Summary: Apache is not using custom content-types when accessing content-negotiated resources Product: Apache httpd-2 Version: 2.2.4 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Apache version: This error is consistent in both Apache 2.0.54 (debian stable), Apache 2.2.3 (debian testing), and Apache 2.2.4 (official tar-ball compiled in-place), This wasn't an error in Apache 1.3.6 (and older 1.3.x versions). Test scenario: We're overriding the content-type (and charset) for a specific location: Server configuration <LocationMatch "^/conneg-test"> Options MultiViews AddType text/html;charset=utf-8 html htm </LocationMatch> Requesting a file in that directory using the complete URI returns the custom content-type: $ HEAD http://localhost/conneg-test/design.html 200 OK Connection: close Date: Tue, 27 Mar 2007 17:26:14 GMT Accept-Ranges: bytes ETag: "48131-1acb-c5210c00" Server: Apache/2.2.4 (Unix) Content-Length: 6859 Content-Type: text/html; charset=utf-8 Last-Modified: Mon, 26 Mar 2007 10:21:36 GMT Client-Date: Tue, 27 Mar 2007 17:26:14 GMT Client-Peer: 127.0.0.1:80 Client-Response-Num: 1 Requesting the same file in that directory using conneg returns the server's default content-type for an ".html .htm" resource. The custom one has not been taken into account when Apache is doing its internal subrequest for solving the content-negotiated resource: $ HEAD http://localhost/conneg-test/design 200 OK Connection: close Date: Tue, 27 Mar 2007 17:27:35 GMT Accept-Ranges: bytes ETag: "48131-1acb-c5210c00;a4376980" Server: Apache/2.2.4 (Unix) Vary: negotiate Content-Length: 6859 Content-Location: design.html Content-Type: text/html Last-Modified: Mon, 26 Mar 2007 10:21:36 GMT Client-Date: Tue, 27 Mar 2007 17:27:35 GMT Client-Peer: 127.0.0.1:80 Client-Response-Num: 1 TCN: choice Proof: The server's default content-type is being served for content-negotiated resources. If I add the following configuration directive before the declarations of the virtual servers: AddType text/my_html;charset=utf-16 html htm That is the content-type that is returned by my conneg request: $ HEAD http://localhost/conneg-test/design 200 OK Connection: close Date: Tue, 27 Mar 2007 17:25:43 GMT Accept-Ranges: bytes ETag: "48131-1acb-c5210c00;a4376980" Server: Apache/2.2.4 (Unix) Vary: negotiate Content-Length: 6859 Content-Location: design.html Content-Type: text/my_html; charset=utf-16 Last-Modified: Mon, 26 Mar 2007 10:21:36 GMT Client-Date: Tue, 27 Mar 2007 17:25:43 GMT Client-Peer: 127.0.0.1:80 Client-Response-Num: 1 TCN: choice Requesting http://localhost/conneg-test/design.html still returns the custom content-type, not the default one. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
