Unverified Commit 26a7a492 authored by Gavin Brown's avatar Gavin Brown
Browse files

case-insensitive comparison of Content-Type header

parent df7f1747
......@@ -86,7 +86,7 @@ sub handle_connection {
$data = decode_base64($params{'dns'});
} elsif ($request->method eq 'POST') {
if (!any { $_ eq $request->header('Content-Type') } @types) {
if (!any { lc($_) eq lc($request->header('Content-Type')) } @types) {
printf(STDERR "%s 415 (type is '%s')\n", $connection->peerhost, $request->header('Content-Type'));
$connection->send_error(415);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment