ainame / AMEURLSession

AMEURLSession provide the simple and customizable interface of NSURLSession family classes to easy using.
MIT License
6 stars 1 forks source link

fix missing Content-Type in PATCH or etc. #5

Closed ypresto closed 9 years ago

ypresto commented 9 years ago

POST request defaults to application/x-www-form-urlencoded (in some layer... i don't know where), but PATCH requests defaults to application/json.

This patch fixes problem that urlencoded PATCH request sent as application/json, by specifying explicit Content-Type header.

ypresto commented 9 years ago

test failed because there is no test code :P

ainame commented 9 years ago

ok