From 16abebcb749a1fa9ec8e95e1a44b9dcfff3ca592 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 6 Dec 2012 10:51:45 -0800 Subject: [PATCH] Max line length of only 10k? This is 2012 --- miniserv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniserv.pl b/miniserv.pl index 6cf408252..4c5201f22 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -2892,7 +2892,7 @@ sub read_line local ($nowait, $nolimit) = @_; local($idx, $more, $rv); while(($idx = index($main::read_buffer, "\n")) < 0) { - if (length($main::read_buffer) > 10000 && !$nolimit) { + if (length($main::read_buffer) > 100000 && !$nolimit) { &http_error(414, "Request too long", "Received excessive line
$main::read_buffer
"); }