Open mecclesgoogle opened 4 years ago
If disable !== false, the request handlers don't accumulate the request.
Therefore, when the plugin is disabled by the 'x-apigee-json2xml-disable' header, it results in the payload not being sent to the target server.
I don't think this is intentional. Disabling the plugin should simply not change any behaviour.
When it's disabled, it should still need to accumulate the request payload.
If disable !== false, the request handlers don't accumulate the request.
Therefore, when the plugin is disabled by the 'x-apigee-json2xml-disable' header, it results in the payload not being sent to the target server.
I don't think this is intentional. Disabling the plugin should simply not change any behaviour.
When it's disabled, it should still need to accumulate the request payload.