Skip to content

Commit

Permalink
Add Vary header to a response
Browse files Browse the repository at this point in the history
  • Loading branch information
eiri committed Apr 19, 2018
1 parent ff0b2c3 commit 19440d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couch_mrview/src/couch_mrview_http.erl
Expand Up @@ -351,7 +351,7 @@ view_cb(Msg, #vacc{resp=undefined, etag=undefined}=Acc) ->
view_cb(Msg, Acc#vacc{resp=Resp, should_close=true});

view_cb(Msg, #vacc{req=Req, resp=undefined, etag=ETag}=Acc) ->
Headers = [{"ETag", ETag}],
Headers = [{"ETag", ETag}, {<<"Vary">>, <<"Accept">>}],
case chttpd:etag_match(Req, ETag) of
true ->
{ok, Resp} = chttpd:send_response(Req, 304, Headers, <<>>),
Expand Down

0 comments on commit 19440d8

Please sign in to comment.