mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
remove line end at 72 for base64 encode
Reported-by: Michel Archambault <marchamb@matrox.com> Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
9c5c8385fc
commit
b75c026613
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,7 @@ lws_b64_encode_string(const char *in, int in_len, char *out, int out_size)
|
||||||
done += 4;
|
done += 4;
|
||||||
line += 4;
|
line += 4;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
if (line >= 72) {
|
if (line >= 72) {
|
||||||
|
|
||||||
if (done + 2 >= out_size)
|
if (done + 2 >= out_size)
|
||||||
|
@ -91,6 +92,7 @@ lws_b64_encode_string(const char *in, int in_len, char *out, int out_size)
|
||||||
done += 2;
|
done += 2;
|
||||||
line = 0;
|
line = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (done + 1 >= out_size)
|
if (done + 1 >= out_size)
|
||||||
|
|
Loading…
Add table
Reference in a new issue