Skip to content

Commit fab4db3

Browse files
committed
Merge pull request #29 from qiniu/develop
Release v6.0.1
2 parents c9f2317 + 8345a36 commit fab4db3

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ install:
55
- sudo apt-get update && sudo apt-get install nunit mono-gmcs cli-common-dev libgl1-mesa-dev libsdl1.2-dev libopenal-dev
66

77
before_script:
8-
- export QINIU_ACCESS_KEY="IFkgYHCdmdNPWNjMMhk9LAV7guz1wpI5Sp5h8ssK"
9-
- export QINIU_SECRET_KEY="R6Nlsu6SQwStqhlDv-e4fMGW3qM4ryBspHgdjAFR"
10-
- export QINIU_TEST_BUCKET="icattlecoder3"
8+
- export QINIU_ACCESS_KEY="iN7NgwM31j4-BZacMjPrOQBs34UG1maYCAQmhdCV"
9+
- export QINIU_SECRET_KEY="6QTOr2Jg1gcZEWDQXKOGZh5PziC2MCV5KsntT70j"
10+
- export QINIU_TEST_BUCKET="qtestbucket"
1111
- export QINIU_TEST_DOMAIN="qiniuphotos.qiniudn.com"
1212

1313
script:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## CHANGE LOG
22

3+
### v6.0.1
4+
5+
2013-09-28 #issue[28](https://github.com/qiniu/csharp-sdk/pull/28)
6+
7+
- 修复Qiniu.RS.Entry实例化时的逻辑判断错误
8+
- 修复断点续传时会自动对key做urlEncode导致key不一致的错误
9+
310
### v6.0.0
411

512
2013-07-30 #issue[17](https://github.com/qiniu/csharp-sdk/pull/17)

Docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public static void PutFile(string bucket, string key, string fname)
418418

419419
为防止在上传较大文件时发生GUI界面出现假死现像,c# SDK的内部被设计为异步上传模式,您可以通过注册client的PutFinished事件获取上传结果。该事件无论上传是否会成功,都会被触发。
420420

421-
421+
**注意: key必须采用utf8编码,如使用非utf8编码访问七牛云存储将反馈错误**
422422

423423
<a name=resumable-io-upload></a>
424424
### 5.2.2 断点续上传
@@ -476,6 +476,8 @@ public event EventHandler<PutNotifyErrorEvent> NotifyErr;
476476

477477
其中<domain>可以到[七牛云存储开发者自助网站](https://portal.qiniu.com/)绑定, 域名可以使用自己一级域名的或者是由七牛提供的二级域名(`<bucket>.qiniudn.com`)。注意,尖括号不是必需,代表替换项。
478478

479+
**注意: key必须采用utf8编码,如使用非utf8编码访问七牛云存储将反馈错误**
480+
479481
<a name=private-download></a>
480482
#### 5.3.2 私有资源下载
481483
私有资源必须通过临时下载授权凭证(downloadToken)下载,如下:

Qiniu/RS/Entry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class Entry : CallRet
4040
public Entry (CallRet ret)
4141
: base(ret)
4242
{
43-
if (OK && string.IsNullOrEmpty (Response)) {
43+
if (OK && !string.IsNullOrEmpty (Response)) {
4444
try {
4545
Unmarshal (Response);
4646
} catch (Exception e) {

Qiniu/RS/GetPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static string MakeRequest (string baseUrl, UInt32 expires = 3600, Mac mac
2929

3030
public static string MakeBaseUrl (string domain, string key)
3131
{
32-
return string.Format ("http://{0}/{1}", domain, System.Web.HttpUtility.UrlEncode (key));
32+
return string.Format ("http://{0}/{1}", domain, key);
3333
}
3434
}
3535
}

Qiniu/RS/RSPath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public string Bucket {
2020
/// 文件key
2121
/// </summary>
2222
public string Key {
23-
get { return System.Web.HttpUtility.UrlEncode (key); }
23+
get { return key; }
2424
}
2525

2626
private string uri;

bin/Qiniu.dll

3 KB
Binary file not shown.

0 commit comments

Comments
 (0)