aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Oliver <[email protected]>2011-10-29 15:48:43 +0100
committerPaul Oliver <[email protected]>2011-10-29 15:48:43 +0100
commitbd90df1f5e641b2a8e35563e65851b257279bfa4 (patch)
tree5d0cb06318919662973edec9390c72822a8a0109 /src
parentd9da5334d251c95273fd20475f18d19fd3eb37ef (diff)
downloadcowboy-bd90df1f5e641b2a8e35563e65851b257279bfa4.tar.gz
cowboy-bd90df1f5e641b2a8e35563e65851b257279bfa4.tar.bz2
cowboy-bd90df1f5e641b2a8e35563e65851b257279bfa4.zip
Fix cowboy_http_req:chunk/2 spec
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 6c4aade..3a3dd2f 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -383,7 +383,7 @@ chunked_reply(Status, Headers, Req=#http_req{socket=Socket, transport=Transport,
%% @doc Send a chunk of data.
%%
%% A chunked reply must have been initiated before calling this function.
--spec chunk(iodata(), #http_req{}) -> ok.
+-spec chunk(iodata(), #http_req{}) -> ok | {error, atom()}.
chunk(_Data, #http_req{socket=_Socket, transport=_Transport, method='HEAD'}) ->
ok;
chunk(Data, #http_req{socket=Socket, transport=Transport, resp_state=chunks}) ->