Double json_encode for PATCH requests
-
Hi,
I’m making use of the API connection in some custom code and have run into a bug.
When making PATCH requests, the body is being double-encoded.
This first encoding happens when preparing the request here.
The double happens just before dispatching it here.(same thing for OAUTH1 here and here)
Fix is to remove the secondary
json_encode
in thepatch()
andhttp_patch()
methods.My use-case: adding and removing tags, which requires multi-level arrays.
P.S. Is the source code in a public repository and open to PRs somewhere?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Double json_encode for PATCH requests’ is closed to new replies.