lukeredpath / LRResty

Yet another Objective-C REST client library, inspired by Ruby's restclient gem.
http://projects.lukeredpath.co.uk/resty/
461 stars 56 forks source link

Form encoded requests strip NSNumber values #4

Closed caged closed 14 years ago

caged commented 14 years ago

I haven't fully tested this, so it might apply to anything that inherits from NSValue or any non-retained, non-copied value. If you send a post request with an NSNumber in the payload, it's stripped, but the request will still complete. If I convert the number to a string before sending it to post:payload:withBlock, everything works as expected.

lukeredpath commented 14 years ago

Non-string objects should have their description form-encoded when part of a payload. Closed by 393864109ff24efae82b6aa7f24692eb2ea98d88.

caged commented 14 years ago

That was quick! :D