Преглед на файлове

ft: 代码修改

master
SisMaker преди 3 години
родител
ревизия
3939c78af0
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/wsSrv/wsHttpProtocol.erl

+ 2
- 2
src/wsSrv/wsHttpProtocol.erl Целия файл

@ -20,9 +20,9 @@ request(reqLine, Data, State) ->
{ok, Scheme, Host, Port, Path, URLArgs} ->
case Rest of
<<>> ->
{ok, State#wsState{stage = header, buffer = <<>>, method = Method, path = Path, wsReq = #wsReq{method = Method, path = Path, version = Version, scheme = Scheme, host = Host, port = Port, args = URLArgs}, headerCnt = 0}};
{ok, State#wsState{stage = header, buffer = <<>>, method = Method, path = Path, wsReq = #wsReq{method = Method, path = Path, version = Version, scheme = Scheme, host = Host, port = Port, args = URLArgs}}};
_ ->
request(header, Rest, State#wsState{stage = header, buffer = Rest, method = Method, path = Path, wsReq = #wsReq{method = Method, path = Path, version = Version, scheme = Scheme, host = Host, port = Port, args = URLArgs}, headerCnt = 0})
request(header, Rest, State#wsState{stage = header, buffer = Rest, method = Method, path = Path, wsReq = #wsReq{method = Method, path = Path, version = Version, scheme = Scheme, host = Host, port = Port, args = URLArgs}})
end;
_Err ->
_Err

Зареждане…
Отказ
Запис