aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-30 01:32:40 +0200
committerLoïc Hoguin <[email protected]>2011-10-30 01:32:40 +0200
commit774659ec0306b963b86031cb2c6525f314cfb044 (patch)
tree5d0cb06318919662973edec9390c72822a8a0109 /src
parentd9da5334d251c95273fd20475f18d19fd3eb37ef (diff)
parentbd90df1f5e641b2a8e35563e65851b257279bfa4 (diff)
downloadcowboy-774659ec0306b963b86031cb2c6525f314cfb044.tar.gz
cowboy-774659ec0306b963b86031cb2c6525f314cfb044.tar.bz2
cowboy-774659ec0306b963b86031cb2c6525f314cfb044.zip
Merge branch 'chunk-spec' of https://github.com/puzza007/cowboy
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}) ->