Stop forcing POST/PUT in ASIFormDataRequest, let ASIHTTPRequest set the request …
…method to POST if nescessary Closes gh-57
Showing
2 changed files
with
1 additions
and
4 deletions
@@ -184,9 +184,6 @@ | @@ -184,9 +184,6 @@ | ||
184 | if ([self haveBuiltPostBody]) { | 184 | if ([self haveBuiltPostBody]) { |
185 | return; | 185 | return; |
186 | } | 186 | } |
187 | - if (![[self requestMethod] isEqualToString:@"PUT"]) { | ||
188 | - [self setRequestMethod:@"POST"]; | ||
189 | - } | ||
190 | 187 | ||
191 | #if DEBUG_FORM_DATA_REQUEST | 188 | #if DEBUG_FORM_DATA_REQUEST |
192 | [self setDebugBodyString:@""]; | 189 | [self setDebugBodyString:@""]; |
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | 24 | ||
25 | // Automatically set on build | 25 | // Automatically set on build |
26 | 26 | ||
27 | -NSString *ASIHTTPRequestVersion = @"v1.6.2-69 2010-06-26"; | 27 | +NSString *ASIHTTPRequestVersion = @"v1.7-1 2010-06-30"; |
28 | 28 | ||
29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; | 29 | NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; |
30 | 30 |
-
Please register or login to post a comment