Skip to content

Instantly share code, notes, and snippets.

@jonjensen
Created January 5, 2010 03:42
Show Gist options
  • Save jonjensen/269129 to your computer and use it in GitHub Desktop.
Save jonjensen/269129 to your computer and use it in GitHub Desktop.
--- edit-server.orig 2010-01-04 20:13:01.000000000 -0700
+++ edit-server 2010-01-04 20:12:34.000000000 -0700
@@ -73,7 +73,7 @@
}
my $len = $header{'content-length'};
- unless ($len) {
+ unless (length $len) {
http_header($fh, 500, 'Invalid request -- no content-length.');
close $fh;
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment