1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Fixed erroneous byte count reported by libwebsocket_write()

This commit is contained in:
Niall T. Davidson 2013-06-10 22:09:16 +01:00
parent 6c58228577
commit be76642c9e

View file

@ -498,7 +498,7 @@ send_raw:
if (n < 0)
return n;
return orig_len - ((len - pre + post) -n );
return orig_len - ((len + pre + post) -n );
}
LWS_VISIBLE int libwebsockets_serve_http_file_fragment(