Skip to content

Commit

Permalink
- restored http PUT which accidentally was removed in the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi committed Sep 18, 2009
1 parent baec708 commit 76d7662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SoundCloudAPI/Sources/SoundCloudAPI/SCSoundCloudAPI.m
Expand Up @@ -374,7 +374,8 @@ - (void)performMethod:(NSString *)httpMethod
[request addValue:[self _responseTypeFromEnum:self.responseFormat] forHTTPHeaderField:@"Accept"];

[request setHTTPMethod:[httpMethod uppercaseString]];
if (![[httpMethod uppercaseString] isEqualToString:@"POST"]){
if (![[httpMethod uppercaseString] isEqualToString:@"POST"]
&& ![[httpMethod uppercaseString] isEqualToString:@"PUT"]) {
[request setParameterDictionary:parameters];
} else {
SCPostBodyStream *postStream = [[SCPostBodyStream alloc] initWithParameters:parameters];
Expand Down

0 comments on commit 76d7662

Please sign in to comment.