send_error_response with dashes in case of no headers

Otherwise there's an exception at line 370 due to malformed client request.