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

Завантаження…
Відмінити
Зберегти