Skip to content

Commit

Permalink
Fixed a bug of download files of Baidu Yun
Browse files Browse the repository at this point in the history
  • Loading branch information
dbsGen committed Dec 5, 2012
1 parent b25d133 commit 45bdec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions YunSDK/SDK/Client/Baidu/MTBaiduClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ - (void)deleteFile:(NSString *)path
- (void)downloadFile:(NSString *)path
{
NSDictionary *params = @{
@"method" : @"delete",
@"method" : @"download",
@"access_token" : [self accessToken],
@"path" : path
};

NSMutableURLRequest *request = [self requestWithMethod:@"POST"
NSMutableURLRequest *request = [self requestWithMethod:@"GET"
urlPath:kBaiduFileURLAdd
urlParams:params
formParams:nil];
Expand Down

0 comments on commit 45bdec6

Please sign in to comment.