aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-02-01 19:04:26 +0100
committerLoïc Hoguin <[email protected]>2012-02-01 19:04:26 +0100
commit096f40bf0887730572f44e688214162c0517d0aa (patch)
tree5c6ce704d5b556df2d1b3a850be52e1f0af1305a
parent2c0c85cd2ff2022b77a73e2921b5967a2053e3de (diff)
downloadcowboy-096f40bf0887730572f44e688214162c0517d0aa.tar.gz
cowboy-096f40bf0887730572f44e688214162c0517d0aa.tar.bz2
cowboy-096f40bf0887730572f44e688214162c0517d0aa.zip
Fix a typo that prevented protocol options upgrades
-rw-r--r--src/cowboy_listener.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_listener.erl b/src/cowboy_listener.erl
index de81cbe..ad54941 100644
--- a/src/cowboy_listener.erl
+++ b/src/cowboy_listener.erl
@@ -114,7 +114,7 @@ handle_call({add_connection, Pool, ConnPid, AccOptsVsn}, From, State=#state{
{NbConns, Pools2} = add_pid(ConnPid, Pool, Pools, ReqsTable),
State2 = State#state{req_pools=Pools2},
if AccOptsVsn =/= LisOptsVsn ->
- {reply, {ugprade, ProtoOpts, LisOptsVsn}, State2};
+ {reply, {upgrade, ProtoOpts, LisOptsVsn}, State2};
NbConns > MaxConns ->
Queue2 = queue:in(From, Queue),
{noreply, State2#state{queue=Queue2}};