Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

How to set Content-Type: application/json in my POST call? #132

Open
rbadapanda opened this issue May 15, 2017 · 1 comment
Open

How to set Content-Type: application/json in my POST call? #132

rbadapanda opened this issue May 15, 2017 · 1 comment

Comments

@rbadapanda
Copy link

No description provided.

@whiteinge
Copy link
Contributor

Rx.DOM.ajax({
    method: 'POST',
    url: 'http://localhost:58042/path',
    body: JSON.stringify({foo: 'Foo!'}),
    headers: {
        'Content-Type': 'application/json',
    },
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants