W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

validator/httpd/cgi-bin check,1.708,1.709

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Oct 2009 15:14:00 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MupGC-0006rC-8X@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv26085

Modified Files:
	check 
Log Message:
Increase default LWP HTTP line length to 8k; the 4k default in LWP <= 5.832
is not enough for example to accommodate 4kB cookies (RFC 2985) (#6678).


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.708
retrieving revision 1.709
diff -u -d -r1.708 -r1.709
--- check	4 Oct 2009 20:43:29 -0000	1.708
+++ check	5 Oct 2009 15:13:58 -0000	1.709
@@ -3229,6 +3229,14 @@
 
 use base qw(LWP::UserAgent);
 
+BEGIN
+{
+  # The 4k default line length in LWP <= 5.832 isn't enough for example to
+  # accommodate 4kB cookies (RFC 2985); bump it (#6678).
+  require LWP::Protocol::http;
+  push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, MaxLineLength => 8*1024);
+}
+
 sub new {
   my ($proto, $CFG, $File, @rest) = @_;
   my $class = ref($proto) || $proto;
Received on Monday, 5 October 2009 15:14:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC