mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix specs for cowboy_http_req:reply/4.
Body is iodata(), not iolist().
This commit is contained in:
parent
c32db277c8
commit
7f35f693fc
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ body_qs(Req) ->
|
||||||
%% Response API.
|
%% Response API.
|
||||||
|
|
||||||
-spec reply(Code::http_status(), Headers::http_headers(),
|
-spec reply(Code::http_status(), Headers::http_headers(),
|
||||||
Body::iolist(), Req::#http_req{}) -> {ok, Req::#http_req{}}.
|
Body::iodata(), Req::#http_req{}) -> {ok, Req::#http_req{}}.
|
||||||
reply(Code, Headers, Body, Req=#http_req{socket=Socket,
|
reply(Code, Headers, Body, Req=#http_req{socket=Socket,
|
||||||
transport=Transport, connection=Connection,
|
transport=Transport, connection=Connection,
|
||||||
resp_state=waiting}) ->
|
resp_state=waiting}) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue