diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2023-05-17 17:11:41 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2023-05-17 17:11:41 -0700 |
commit | bd1cd5c6a10558f31ea2cf8f06f2f6bb64b192de (patch) | |
tree | 6456a77349478ed0911113b35f0ac98216105472 /nginx/ngx_http_js_module.c | |
parent | 417dd4ebf897d3f5cb06bb2f6fd72730d996700a (diff) | |
download | njs-bd1cd5c6a10558f31ea2cf8f06f2f6bb64b192de.tar.gz njs-bd1cd5c6a10558f31ea2cf8f06f2f6bb64b192de.zip |
Change: removed deprecated r.requestBody and r.responseBody.
Both properties were deprecated since 0.5.0.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 208417c7..e2fda66d 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -603,15 +603,6 @@ static njs_external_t ngx_http_js_ext_request[] = { { .flags = NJS_EXTERN_PROPERTY, - .name.string = njs_str("requestBody"), - .u.property = { - .handler = ngx_http_js_ext_get_request_body, - .magic32 = NGX_JS_STRING | NGX_JS_DEPRECATED, - } - }, - - { - .flags = NJS_EXTERN_PROPERTY, .name.string = njs_str("requestBuffer"), .u.property = { .handler = ngx_http_js_ext_get_request_body, @@ -631,15 +622,6 @@ static njs_external_t ngx_http_js_ext_request[] = { { .flags = NJS_EXTERN_PROPERTY, - .name.string = njs_str("responseBody"), - .u.property = { - .handler = ngx_http_js_ext_get_response_body, - .magic32 = NGX_JS_STRING | NGX_JS_DEPRECATED, - } - }, - - { - .flags = NJS_EXTERN_PROPERTY, .name.string = njs_str("responseBuffer"), .u.property = { .handler = ngx_http_js_ext_get_response_body, @@ -2604,10 +2586,6 @@ ngx_http_js_ext_get_request_body(njs_vm_t *vm, njs_object_prop_t *prop, ngx_http_js_ctx_t *ctx; ngx_http_request_t *r; - if (njs_vm_prop_magic32(prop) & NGX_JS_DEPRECATED) { - njs_deprecated(vm, "r.requestBody"); - } - r = njs_vm_external(vm, ngx_http_js_request_proto_id, value); if (r == NULL) { njs_value_undefined_set(retval); @@ -3455,10 +3433,6 @@ ngx_http_js_ext_get_response_body(njs_vm_t *vm, njs_object_prop_t *prop, ngx_http_js_ctx_t *ctx; ngx_http_request_t *r; - if (njs_vm_prop_magic32(prop) & NGX_JS_DEPRECATED) { - njs_deprecated(vm, "r.responseBody"); - } - r = njs_vm_external(vm, ngx_http_js_request_proto_id, value); if (r == NULL) { njs_value_undefined_set(retval); |