- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 13 Feb 2008 05:57:26 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv12756/httpd/cgi-bin Modified Files: check Log Message: adding accept-charset option Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.582 retrieving revision 1.583 diff -u -d -r1.582 -r1.583 --- check 12 Feb 2008 06:30:25 -0000 1.582 +++ check 13 Feb 2008 05:57:24 -0000 1.583 @@ -444,6 +444,7 @@ $File->{Opt}->{'Accept Header'} = $q->param('accept') ? $q->param('accept') : ''; $File->{Opt}->{'Accept-Language Header'} = $q->param('accept-language') ? $q->param('accept-language') : ''; +$File->{Opt}->{'Accept-Charset Header'} = $q->param('accept-charset') ? $q->param('accept-charset') : ''; # # "Fallback" info for Character Encoding (fbc), Content-Type (fbt), @@ -1310,7 +1311,7 @@ # telling caches in the middle we want a fresh copy (Bug 4998) $req->header(Cache_control=> "max-age=0"); - # if one wants to use the accept and accept-language params + # if one wants to use the accept, accept-charset and accept-language params # in order to trigger specific negotiation if ($File->{Opt}->{'Accept Header'}) { $req->header(Accept => $File->{Opt}->{'Accept Header'}); @@ -1318,6 +1319,9 @@ if ($File->{Opt}->{'Accept-Language Header'}) { $req->header(Accept_Language => $File->{Opt}->{'Accept-Language Header'}); } + if ($File->{Opt}->{'Accept-Charset Header'}) { + $req->header(Accept_Charset => $File->{Opt}->{'Accept-Charset Header'}); + } # If we got a Authorization header, the client is back at it after being
Received on Wednesday, 13 February 2008 06:00:50 UTC