mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
net.websocket.frames: Additionally return partial frame if there is one
This commit is contained in:
parent
71256641f4
commit
a0fb8d876f
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ end
|
||||||
|
|
||||||
local function parse_frame(frame)
|
local function parse_frame(frame)
|
||||||
local result, pos = parse_frame_header(frame);
|
local result, pos = parse_frame_header(frame);
|
||||||
if result == nil or #frame < (pos + result.length) then return; end
|
if result == nil or #frame < (pos + result.length) then return nil, nil, result; end
|
||||||
result.data = parse_frame_body(frame, result, pos+1);
|
result.data = parse_frame_body(frame, result, pos+1);
|
||||||
return result, pos + result.length;
|
return result, pos + result.length;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue