summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index c99251e4..8a5c699a 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -763,7 +763,8 @@ error_headers(#httpd{mochi_req=MochiReq}=Req, Code, ErrorStr, ReasonStr) ->
Else ->
Else
end,
- case re:run(Accepts, "html", [{capture, none}, caseless]) of
+ case re:run(Accepts, "\\bhtml\\b",
+ [{capture, none}, caseless]) of
nomatch ->
{Code, []};
match ->