Skip to content

Commit bbe4a4d

Browse files
committed
Merge branch 'Hotfixes/multiple-post-params'
2 parents 4cb3667 + b09b143 commit bbe4a4d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

OAuth.io.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "OAuth.io"
19-
s.version = "1.1.1"
19+
s.version = "1.1.2"
2020
s.summary = "OAuth that just works!"
2121

2222
s.description = <<-DESC

OAuthiOS/Src/OAuthIORequest.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ - (NSString *)buildHeaderWithDictionnary:(NSDictionary *)params
351351
}
352352
}
353353
}
354-
355354
return (query);
356355
}
357356

@@ -362,8 +361,9 @@ - (NSData *)buildPostParams:(id)params
362361
{
363362
if (_contentType != nil)
364363
postData = [[self formatFromContentType:params] dataUsingEncoding:NSUTF8StringEncoding];
365-
else
366-
postData = [[OAuthIORequest encodeURL:[self buildQueryWithDictionnary:params]] dataUsingEncoding:NSUTF8StringEncoding];
364+
else{
365+
postData = [[self buildQueryWithDictionnary:params] dataUsingEncoding:NSUTF8StringEncoding];
366+
}
367367
}
368368
else if ([params isKindOfClass:[NSString class]])
369369
postData = [params dataUsingEncoding:NSUTF8StringEncoding];
@@ -372,7 +372,8 @@ - (NSData *)buildPostParams:(id)params
372372

373373
NSString *contentLength = [NSString stringWithFormat:@"%lu", (unsigned long)[postData length]];
374374
[self addHeaderWithKey:@"Content-Length" andValue:contentLength];
375-
375+
376+
376377
return (postData);
377378
}
378379

0 commit comments

Comments
 (0)