From bd1cd5c6a10558f31ea2cf8f06f2f6bb64b192de Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Wed, 17 May 2023 17:11:41 -0700 Subject: [PATCH] Change: removed deprecated r.requestBody and r.responseBody. Both properties were deprecated since 0.5.0. --- nginx/ngx_http_js_module.c | 26 -------------------------- 1 file changed, 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 @@ -601,15 +601,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"), @@ -629,15 +620,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"), @@ -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); -- 2.47.3