Unverified Commit c8b3edda authored by Gavin Brown's avatar Gavin Brown
Browse files

send a Content-Type header that matches the Accept header in the request

parent 5018030a
......@@ -230,7 +230,7 @@ sub handle_connection {
#
$connection->send_status_line;
$connection->send_header('Server', basename(__FILE__));
$connection->send_header(CONTENT_TYPE, $types[0]);
$connection->send_header(CONTENT_TYPE, $request->header(CONTENT_TYPE) || $types[0]);
$connection->send_header('Connection', 'close');
$connection->send_crlf;
$connection->print($response->data);
......
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