Commit 74b8cef8 authored by Byron Jones's avatar Byron Jones

Bug 905948: under mod_perl, HTTP/200 is returned when etags match If-None-Match

r=dkl, a=glob
parent 8d4c3e53
......@@ -135,9 +135,10 @@ sub handler : method {
Bugzilla::init_page();
my $result = $class->SUPER::handler(@_);
# When returning data from the REST api, tell Apache not to append its
# error html documents to the response.
return Bugzilla->usage_mode == USAGE_MODE_REST
# When returning data from the REST api we must only return 200 or 304,
# which tells Apache not to append its error html documents to the
# response.
return Bugzilla->usage_mode == USAGE_MODE_REST && $result != 304
? Apache2::Const::OK
: $result;
}
......
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