Skip to content

Commit f43f99d

Browse files
committed
Merge pull request #28 from icattlecoder/bugfix/url_encode
urlencode-bug-fix
2 parents 2c3e6f6 + 6258fca commit f43f99d

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
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)

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)