diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2023-11-21 08:57:03 -0800 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2023-11-21 08:57:03 -0800 |
commit | 2743bab180ab067ea6d146c92a30a7f88bff7b2a (patch) | |
tree | 573308bd4ee0c623627bd7eb48ce6b6f67cd195e /nginx/ngx_js.c | |
parent | 62d0d45611cf8eaab28ec7a64d4bb9b12b3513c0 (diff) | |
download | njs-2743bab180ab067ea6d146c92a30a7f88bff7b2a.tar.gz njs-2743bab180ab067ea6d146c92a30a7f88bff7b2a.zip |
Modules: fixed js_set with Buffer values.
Previously, a Buffer value which contains invalid UTF-8 when returned as a
value for js_set handler was mangled because the bytes value was converted to a
string value.
The fix is to use bytes value of Buffer, TypedArray and ArrayBuffer as is,
and not convert it to a string first.
Diffstat (limited to 'nginx/ngx_js.c')
0 files changed, 0 insertions, 0 deletions