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

Make the new cowboy_req tests more realistic

This commit is contained in:
Loïc Hoguin 2017-01-04 19:45:35 +01:00
parent f34ef2ceae
commit e5a8088e68
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
3 changed files with 28 additions and 23 deletions

View file

@ -580,7 +580,6 @@ set_resp_headers(Headers, Req=#{resp_headers := RespHeaders}) ->
set_resp_headers(Headers, Req) ->
Req#{resp_headers => Headers}.
-spec resp_header(binary(), req()) -> binary() | undefined.
resp_header(Name, Req) ->
resp_header(Name, Req, undefined).