File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments