Skip to content

Why does my form always get submitted with Content-Type:application/x-www-form-urlencoded; #506

Open
@JohnSmall

Description

@JohnSmall

I'm trying to send a form with Content-Type:application/json; I set

`<form data-remote="true" data-type="json">...</form>`

As it says in the documentation.

But it's always sent as Content-Type:application/x-www-form-urlencoded;

Is this a bug or is there a special undocumented gotcha such that setting data-type='json' doesn't actually send json encoded data.

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