projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dda1ad
)
Explicitly reject CONNECT requests
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 21 Jul 2011 05:19:14 +0000
(22:19 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 21 Jul 2011 05:19:14 +0000
(22:19 -0700)
miniserv.pl
patch
|
blob
|
history
diff --git
a/miniserv.pl
b/miniserv.pl
index
93f749b
..
cff21ac
100755
(executable)
--- a/
miniserv.pl
+++ b/
miniserv.pl
@@
-1457,6
+1457,11
@@
if ($method eq 'POST' &&
print DEBUG "handle_request: posted_data=$posted_data\n";
}
+# Reject CONNECT request, which isn't supported
+if ($method eq "CONNECT") {
+ &http_error(405, "Method $method is not supported");
+ }
+
# work out accepted encodings
%acceptenc = map { $_, 1 } split(/,/, $header{'accept-encoding'});