apigee / microgateway-plugins

Plugins for microgateway, oauth, analytics, spike arrest, etc...
Other
30 stars 54 forks source link

json2xml plugin doesn't accumulate request when disabled #183

Open mecclesgoogle opened 4 years ago

mecclesgoogle commented 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.