diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2023-06-22 15:40:36 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2023-06-22 15:40:36 -0700 |
commit | 5b463b8050377216ad4197cd1e35bb69b35b77e9 (patch) | |
tree | b21ee0e101940cc7af806a184c79d4ec32818e61 /nginx/ngx_stream_js_module.c | |
parent | 295213f8a51c3ebaf4e9c4fcedda13477378708b (diff) | |
download | njs-5b463b8050377216ad4197cd1e35bb69b35b77e9.tar.gz njs-5b463b8050377216ad4197cd1e35bb69b35b77e9.zip |
Fetch: fixed setting of Content-Type header.
Previously, Content-Type was set unconditionally to
"text/plain;charset=UTF-8" when fetch request contained a string body.
This may overlap with user's Content-Type.
The fix is to set the header only if it was not set before.
This fixes #654 issue on Github.
Diffstat (limited to 'nginx/ngx_stream_js_module.c')
0 files changed, 0 insertions, 0 deletions