Skip to content

PUT and PATCH with send: application/json must be send as json #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks
njoubert-cleverage opened this issue Feb 26, 2025 · 0 comments
Closed
3 tasks
Assignees
Labels
bug Something isn't working

Comments

@njoubert-cleverage
Copy link
Member

Description

On CleverAge\RestProcessBundle\Client\Client->getRequestOptions() :

if ('POST' === $options['method'] && 'application/json' === $options['sends']) {
            $requestOptions['json'] = $options['data'];

PUT and PATCH methods must be treated as json too.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

@njoubert-cleverage njoubert-cleverage added the bug Something isn't working label Feb 26, 2025
@njoubert-cleverage njoubert-cleverage self-assigned this Feb 26, 2025
njoubert-cleverage added a commit that referenced this issue Feb 26, 2025
#12 PUT and PATCH with send: application/json must be send as json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant