Skip to content

Commit cef7929

Browse files
committed
update
1 parent 0beb1d3 commit cef7929

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csp/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var cos = new COS({
4242
ServiceDomain: 'http://cos.default.xxx.com', // 这里替换成 getService 域名
4343
Domain: 'http://{Bucket}.cos.{Region}.xxx.com', 这里替换成 API 域名格式模板
4444
getAuthorization: function (options, callback) {
45-
var url = './auth.php?method=' + options.Method + '&pathname=' + encodeURIComponent(options.Key);
45+
var url = './auth-json.php?method=' + options.Method + '&path=' + encodeURIComponent('/' + options.Key);
4646
var xhr = new XMLHttpRequest();
4747
xhr.open('GET', url, true);
4848
xhr.onload = function (e) {

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ group('putObject()', function () {
634634
Region: config.Region,
635635
Key: filename,
636636
}, function (err, data) {
637-
assert.ok(data.Body === content && (data.headers && data.headers.etag) === ETag);
637+
assert.ok(data.Body && data.Body === content && (data.headers && data.headers.etag) === ETag);
638638
done();
639639
});
640640
});

0 commit comments

Comments
 (0)