|
|
@ -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 |
|
|
|