diff options
author | Loïc Hoguin <[email protected]> | 2012-02-01 19:04:26 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-02-01 19:04:26 +0100 |
commit | 096f40bf0887730572f44e688214162c0517d0aa (patch) | |
tree | 5c6ce704d5b556df2d1b3a850be52e1f0af1305a | |
parent | 2c0c85cd2ff2022b77a73e2921b5967a2053e3de (diff) | |
download | cowboy-096f40bf0887730572f44e688214162c0517d0aa.tar.gz cowboy-096f40bf0887730572f44e688214162c0517d0aa.tar.bz2 cowboy-096f40bf0887730572f44e688214162c0517d0aa.zip |
Fix a typo that prevented protocol options upgrades
-rw-r--r-- | src/cowboy_listener.erl | 2 |
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}}; |