When can-ajax is used with the PATCH method, the body payload should append to the request body, not the url query string.
POST and PUT are working as expected, but sending a JSON payload with PATCH is not.
ajax({ url: ``${loader.serviceBaseURL}/carrito_articulo?${pk.toString()}``, type: 'PATCH', data: {foo: 'bar'} })
When
can-ajaxis used with thePATCHmethod, the body payload should append to the request body, not the url query string.POSTandPUTare working as expected, but sending a JSON payload withPATCHis not.ajax({ url: ``${loader.serviceBaseURL}/carrito_articulo?${pk.toString()}``, type: 'PATCH', data: {foo: 'bar'} })