Browse Source

Fix a typo that prevented protocol options upgrades

Loïc Hoguin 13 years ago
parent
commit
096f40bf08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_listener.erl

+ 1 - 1
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}};