Skip to content

Commit

Permalink
Merge pull request #31 from ericcastro/master
Browse files Browse the repository at this point in the history
Fix Content-type value on POST (and other methods != GET)
  • Loading branch information
youknowone committed Feb 16, 2014
2 parents 04926b9 + 6eba1a9 commit 0a60577
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions VisualJSON/VJDocument.m
Expand Up @@ -377,6 +377,7 @@ - (void)refreshBackground {

if (self.method && ![self.method isEqualToString:@"GET"]) {
[req setHTTPMethod:self.method];
[req setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-type"];
[req setHTTPBody:self.querydata.dataUsingUTF8Encoding];
}

Expand Down

0 comments on commit 0a60577

Please sign in to comment.