0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add missing specs to an internal cowboy_req function

This commit is contained in:
Loïc Hoguin 2016-08-12 18:06:45 +02:00
parent e44ac98c83
commit b63b6ef865

View file

@ -676,6 +676,7 @@ push(Path, Headers, #{pid := Pid, streamid := StreamID,
%% Internal. %% Internal.
%% @todo What about set-cookie headers set through set_resp_header or reply? %% @todo What about set-cookie headers set through set_resp_header or reply?
-spec response_headers(Headers, req()) -> Headers when Headers::cowboy:http_headers().
response_headers(Headers0, Req) -> response_headers(Headers0, Req) ->
RespHeaders = maps:get(resp_headers, Req, #{}), RespHeaders = maps:get(resp_headers, Req, #{}),
Headers = maps:merge(#{ Headers = maps:merge(#{