-
Notifications
You must be signed in to change notification settings - Fork 977
Enable POSTing JSON objects with casper.open() #832
Conversation
This should fix #196 I've run |
Hi @sqren Can you please add a test for your specific case ? Regards, |
Added a test. |
For me 👍 when you will fix some typos. Let's wait @n1k0 review ;) |
Use JSON.stringify for encoding the request body when Content-Type is "application/json". Ref #196
Thanks for the comments. I've fixed the style issues and squashed everything into a single commit. |
Is JSON encoding parameters the default behavior we want when using |
The most important thing is, that we don't run |
Hmm, you're kinda right :) Merging. |
Enable POSTing JSON objects with casper.open()
Thanks for contributing. |
this fixes casperjs#832 #196 in the following scenarios .. content-type can be * application/json * application/json; charset=utf-8
Use
JSON.stringify
for encoding the request body whenContent-Type
isapplication/json
.