W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

validator/httpd/cgi-bin check,1.770,1.771

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 06 Mar 2010 11:00:50 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NnrkY-00042z-UQ@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv15527/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Add warning for missing Content-Type.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.770
retrieving revision 1.771
diff -u -d -r1.770 -r1.771
--- check	4 Mar 2010 16:09:52 -0000	1.770
+++ check	6 Mar 2010 11:00:48 -0000	1.771
@@ -414,6 +414,11 @@
 #### Output validation results. ###############################################
 ###############################################################################
 
+if (!$File->{ContentType} && !$File->{'Direct Input'} && !$File->{'Is Upload'})
+{
+    &add_warning('W08', {});
+}
+
 $File = find_encodings($File);
 
 #
Received on Saturday, 6 March 2010 11:00:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT