- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 05 Oct 2009 15:14:00 +0000
- To: www-validator-cvs@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