Browse files

polished dialyzer warnings

  • Loading branch information...
1 parent 335977e commit f1b94c29665fe42cb1cc92b7f1b1fae9aae6e99b @ostinelli committed Nov 27, 2011
Showing with 1 addition and 3 deletions.
  1. +0 −2 src/misultin_utility.erl
  2. +1 −1 src/misultin_websocket_draft-hybi-10_17.erl
View
2 src/misultin_utility.erl
@@ -174,8 +174,6 @@ get_http_status_message(429) ->
"429 Too Many Requests";
get_http_status_message(431) ->
"431 Request Header Fields Too Large";
-get_http_status_message(429) ->
- "429 Too Many Requests";
get_http_status_message(444) ->
"444 No Response";
get_http_status_message(449) ->
View
2 src/misultin_websocket_draft-hybi-10_17.erl
@@ -164,7 +164,7 @@ send_format(Data, OpCode, _State) ->
% ---------------------------- \/ frame parsing ------------------------------------------------------------
% parse received data and get the frames
--spec take_frame(Data::binary()) -> {#frame{} | undefined, Rest::binary()}.
+-spec take_frame(Data::binary()) -> {#frame{} | undefined, Rest::binary()} | {error, max_size_reached}.
% normal length
take_frame(<<Fin:1,
Rsv1:1, %% Rsv1 = 0

0 comments on commit f1b94c2

Please sign in to comment.