Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Nov 23, 2018
1 parent 0beb1d3 commit cef7929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion csp/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var cos = new COS({
ServiceDomain: 'http://cos.default.xxx.com', // 这里替换成 getService 域名
Domain: 'http://{Bucket}.cos.{Region}.xxx.com', 这里替换成 API 域名格式模板
getAuthorization: function (options, callback) {
var url = './auth.php?method=' + options.Method + '&pathname=' + encodeURIComponent(options.Key);
var url = './auth-json.php?method=' + options.Method + '&path=' + encodeURIComponent('/' + options.Key);
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = function (e) {
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ group('putObject()', function () {
Region: config.Region,
Key: filename,
}, function (err, data) {
assert.ok(data.Body === content && (data.headers && data.headers.etag) === ETag);
assert.ok(data.Body && data.Body === content && (data.headers && data.headers.etag) === ETag);
done();
});
});
Expand Down

0 comments on commit cef7929

Please sign in to comment.