stackmob/StackMob_iOS — pull request #40 by arschles (2012-01-25 03:33:10+00:00)
Title: removing leading whitespace on file upload JSON payloads

the multi line strings used in SMFile's JSON method were causing leading whitespace in the body of the file upload. said whitespace is causing payloads that look like this: http://hastebin.com/raw/malunaxibe, which was causing an error on the server. This commit changes those multiline strings to remove the leading whitespace.

Also, on another note, NSData+Base64 and NSData+JSON weren't included in the tests target so tests were failing to run. This commit fixes that as well