W3C home > Mailing lists > Public > public-swd-wg@w3.org > July 2007

ISSUE-58: .htaccess \'accept header\' ONLY responds to a header which EXACTLY matches \"application/rdf+xml\"

From: SWD Issue Tracker <dean+cgi@w3.org>
Date: Tue, 17 Jul 2007 12:12:39 +0000 (GMT)
To: public-swd-wg@w3.org
Message-Id: <20070717121239.2E01B6B644@kent.w3.org>

ISSUE-58: .htaccess 'accept header' ONLY responds to a header which EXACTLY matches "application/rdf+xml"


Raised by: Jon Phipps
On product: Recipes

Per Tim BL

"The recipe for responding to an accept header only responds to a header which
EXACTLY matches "application/rdf+xml". However, a client may send (and often
will) a header with many  comma-separated values, and they may have quality
parameters (q=0.xx).

This is a serious problem as people are copying the recipe, and making sites
which do not work."

This applies to Recipes 3, 4, 5 and references this part of the .htaccess Apache


# Rewrite rule to serve RDF/XML content if requested 
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml


The rewrite condition regular expression: "application/rdf\+xml" 
needs to be rewritten
Received on Tuesday, 17 July 2007 12:12:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:31:44 UTC