Skip to content

Commit 7d7665a

Browse files
committed
Merge pull request #17 from longbai/trip_empty_arg
Trip empty arg
2 parents b3b4443 + 905d527 commit 7d7665a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#Changelog
22

3+
## 7.0.7 (2014-12-24)
4+
5+
### 修正
6+
* 上传时指定mimeType无效的问题
7+
* 忽略上传时,value 为 空字串的key
8+
39
## 7.0.6 (2014-10-31)
410

511
### 修正

QiniuSDK/Common/QNVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
/**
1212
* sdk 版本
1313
*/
14-
static const NSString *kQiniuVersion = @"7.0.6";
14+
static const NSString *kQiniuVersion = @"7.0.7";

QiniuSDK/Storage/QNUploadOption.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ + (NSDictionary *)filteParam:(NSDictionary *)params {
2525
NSMutableDictionary *ret = [NSMutableDictionary dictionary];
2626

2727
[params enumerateKeysAndObjectsUsingBlock: ^(NSString *key, NSString *obj, BOOL *stop) {
28-
if ([key hasPrefix:@"x:"]) {
28+
if ([key hasPrefix:@"x:"] && ![obj isEqualToString:@""]) {
2929
ret[key] = obj;
3030
}
3131
}];

QiniuSDKTests/QNResumeUploadTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ - (void)testCancel {
4646
__block BOOL flag = NO;
4747
QNUploadOption *opt = [[QNUploadOption alloc] initWithMime:nil progressHandler: ^(NSString *key, float percent) {
4848
flag = YES;
49-
} params:@{ @"x:七牛":@"objc" } checkCrc:NO cancellationSignal: ^BOOL () {
49+
} params:@{ @"x:七牛":@"objc", @"x:no":@"", @"invalid":@"invalid" } checkCrc:NO cancellationSignal: ^BOOL () {
5050
return flag;
5151
}];
5252
[_upManager putFile:tempFile.path key:keyUp token:g_token complete: ^(QNResponseInfo *i, NSString *k, NSDictionary *resp) {

0 commit comments

Comments
 (0)