Browse Source

Fix specs for cowboy_http_req:reply/4.

Body is iodata(), not iolist().
Loïc Hoguin 14 years ago
parent
commit
7f35f693fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_http_req.erl

+ 1 - 1
src/cowboy_http_req.erl

@@ -173,7 +173,7 @@ body_qs(Req) ->
 %% Response API.
 
 -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,
 		transport=Transport, connection=Connection,
 		resp_state=waiting}) ->