aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}};