diff options
-rwxr-xr-x | httpd/cgi-bin/check | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index d38202a..68cd0d7 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -14,7 +14,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.564 2007-09-11 05:34:13 ot Exp $ +# $Id: check,v 1.565 2007-09-11 05:58:30 ot Exp $ # # Disable buffering on STDOUT! @@ -186,7 +186,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.564 $; + $VERSION = q$Revision: 1.565 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1436,6 +1436,9 @@ sub parse_content_type { 'http://validator.w3.org/feed/check.cgi?url=' . uri_escape $url; exit; + } elsif ($ct =~ m(application/.+\+xml)) { + # unknown media types which should be XML - we give these a try + $mode = "XML"; } else { $File->{'Error Flagged'} = TRUE; $File->{Templates}->{Error}->param(fatal_mime_error => TRUE); |