Commit 6505ff4d authored by Yadd's avatar Yadd
Browse files

Add text/xml in authorized mime types (proxy). Closes #820

parent 3e854253
......@@ -804,7 +804,7 @@ sub prx {
$response->code . " (" . $response->message . ")", 400 );
}
unless ( $response->header('Content-Type') =~
m#^(?:application/json|application/.*xml.*)$# )
m#^(?:application/json|(?:application|text)/.*xml.*)$# )
{
return $self->sendError( $req,
'Content refused for security reason (neither XML or JSON)', 400 );
......
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