Skip to content

Commit

Permalink
Fix missing request initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mittsh committed Nov 4, 2015
1 parent 4b8beb0 commit 3abda7a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions objc.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
@"{{{name}}}":@"{{{value}}}",
{{/url.params}}
};

NSMutableURLRequest* request = [[AFHTTPRequestSerializer serializer] requestWithMethod:@"{{{request.method}}}" URLString:@"{{{url.base}}}" parameters:URLParameters error:NULL];

{{/url.has_params}}
{{^url.has_params}}
// Create request
NSMutableURLRequest* request = [[AFHTTPRequestSerializer serializer] requestWithMethod:@"{{{request.method}}}" URLString:@"{{{url.base}}}" parameters:nil error:NULL];

{{/url.has_params}}
{{/has_params_and_body}}
{{! ----- }}
{{#body.has_url_encoded_body}}
Expand Down

0 comments on commit 3abda7a

Please sign in to comment.