Currently getPut is working only on form data, like on raw body request. When you send json it doesn't work and you need to use getJsonRawBody anyway. Im thinking about checking request header - if it's application/json, then use getJsonRawBody instead of getRawBody in getPut method.
To not introduce some big breaking change(will it break anything though?) it could be as php.ini option to enable this behavior.
Any thoughts?
Currently getPut is working only on form data, like on raw body request. When you send json it doesn't work and you need to use
getJsonRawBodyanyway. Im thinking about checking request header - if it'sapplication/json, then usegetJsonRawBodyinstead ofgetRawBodyingetPutmethod.To not introduce some big breaking change(will it break anything though?) it could be as php.ini option to enable this behavior.
Any thoughts?