validator/httpd/cgi-bin check,1.600,1.601

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv20057

Modified Files:
	check 
Log Message:
HTTP::Message content must be bytes - doesn't like utf8 strings it seems

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.600
retrieving revision 1.601
diff -u -d -r1.600 -r1.601
--- check	20 Aug 2008 20:34:10 -0000	1.600
+++ check	22 Aug 2008 11:36:29 -0000	1.601
@@ -844,7 +844,7 @@
   $ua->default_header(Cache_control=> "max-age=0");
   
   my $res = $ua->request(POST "$CFG->{External}->{HTML5}", Content_Type => 'form-data',
-  Content  => [out => "xml", parser=>$html5_parser, content => join "\n", @{$File->{Content}}]);
+  Content  => [out => "xml", parser=>$html5_parser, content => Encode::encode_utf8(join "\n", @{$File->{Content}})]);
   if (! $res->is_success()) {
     $File->{'Error Flagged'} = TRUE;
     $File->{Templates}->{Error}->param(fatal_no_checker  => TRUE);   

Received on Friday, 22 August 2008 11:37:05 UTC