From 7f35f693fcdd0d174e26f8ff68865ca94bd002d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 14 Apr 2011 14:13:26 +0200 Subject: Fix specs for cowboy_http_req:reply/4. Body is iodata(), not iolist(). --- src/cowboy_http_req.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 4907503..2f52eeb 100644 --- a/src/cowboy_http_req.erl +++ b/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}) -> -- cgit v1.2.3