aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_stream_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2023-06-22 15:40:36 -0700
committerDmitry Volyntsev <xeioex@nginx.com>2023-06-22 15:40:36 -0700
commit5b463b8050377216ad4197cd1e35bb69b35b77e9 (patch)
treeb21ee0e101940cc7af806a184c79d4ec32818e61 /nginx/ngx_stream_js_module.c
parent295213f8a51c3ebaf4e9c4fcedda13477378708b (diff)
downloadnjs-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