aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-21 22:22:30 +0100
committerLoïc Hoguin <[email protected]>2011-03-21 22:22:30 +0100
commitc366343ac6b91de3af810584583bb90ff5fc5ddc (patch)
treec8e708ff29c00d3eff46d289f7cf2ccf47e36778
parent0b13835bfea9107773ee06ae5914998d20ca7477 (diff)
downloadcowboy-c366343ac6b91de3af810584583bb90ff5fc5ddc.tar.gz
cowboy-c366343ac6b91de3af810584583bb90ff5fc5ddc.tar.bz2
cowboy-c366343ac6b91de3af810584583bb90ff5fc5ddc.zip
Fix spec for cowboy_http_protocol:init/3.
-rw-r--r--src/cowboy_http_protocol.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl
index 34f0c0d..2ac4e54 100644
--- a/src/cowboy_http_protocol.erl
+++ b/src/cowboy_http_protocol.erl
@@ -38,8 +38,7 @@ start_link(Socket, Transport, Opts) ->
%% FSM.
--spec init(Socket::socket(), Transport::module(), Opts::term())
- -> ok | {error, no_ammo}.
+-spec init(Socket::socket(), Transport::module(), Opts::term()) -> ok.
init(Socket, Transport, Opts) ->
Dispatch = proplists:get_value(dispatch, Opts, []),
Timeout = proplists:get_value(timeout, Opts, 5000),