Browse Source

Use the correct process type for clear connections

Loïc Hoguin 9 years ago
parent
commit
d19134b02e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy.erl

+ 1 - 1
src/cowboy.erl

@@ -44,7 +44,7 @@
 	cowboy_protocol:opts()) -> {ok, pid()} | {error, any()}.
 start_clear(Ref, NbAcceptors, TransOpts0, ProtoOpts)
 		when is_integer(NbAcceptors), NbAcceptors > 0 ->
-	TransOpts = TransOpts0,%[connection_type(ProtoOpts)|TransOpts0],
+	TransOpts = [connection_type(ProtoOpts)|TransOpts0],
 	ranch:start_listener(Ref, NbAcceptors, ranch_tcp, TransOpts, cowboy_clear, ProtoOpts).
 
 -spec start_tls(ranch:ref(), non_neg_integer(), ranch_ssl:opts(), opts()) -> {ok, pid()} | {error, any()}.