Skip to content

Body payload is appending to the url query string instead of request body #75

Open
@eddypjr

Description

@eddypjr

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'} })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions