@@ -51,10 +51,10 @@ Client.prototype.move = function(bucketSrc, keySrc, bucketDest, keyDest, onret)
51
51
}
52
52
53
53
Client . prototype . forceMove = function ( bucketSrc , keySrc , bucketDest , keyDest , force , onret ) {
54
-
54
+
55
55
var encodedEntryURISrc = getEncodedEntryUri ( bucketSrc , keySrc ) ;
56
56
var encodedEntryURIDest = getEncodedEntryUri ( bucketDest , keyDest ) ;
57
- var uri = conf . RS_HOST + '/move/' + encodedEntryURISrc + '/' + encodedEntryURIDest + '/force/' + force ;
57
+ var uri = conf . RS_HOST + '/move/' + encodedEntryURISrc + '/' + encodedEntryURIDest + '/force/' + force ;
58
58
59
59
var digest = util . generateAccessToken ( uri , null ) ;
60
60
rpc . postWithoutForm ( uri , digest , onret ) ;
@@ -70,11 +70,11 @@ Client.prototype.copy = function(bucketSrc, keySrc, bucketDest, keyDest, onret)
70
70
}
71
71
72
72
Client . prototype . forceCopy = function ( bucketSrc , keySrc , bucketDest , keyDest , force , onret ) {
73
-
73
+
74
74
var encodedEntryURISrc = getEncodedEntryUri ( bucketSrc , keySrc ) ;
75
75
var encodedEntryURIDest = getEncodedEntryUri ( bucketDest , keyDest ) ;
76
76
var uri = conf . RS_HOST + '/copy/' + encodedEntryURISrc + '/' + encodedEntryURIDest + '/force/' + force ;
77
-
77
+
78
78
var digest = util . generateAccessToken ( uri , null ) ;
79
79
rpc . postWithoutForm ( uri , digest , onret ) ;
80
80
}
@@ -117,7 +117,7 @@ function EntryPathPair(src, dest) {
117
117
}
118
118
119
119
EntryPathPair . prototype . toStr = function ( op , force ) {
120
- if ( typeof ( force ) == 'undefined' ) {
120
+ if ( typeof ( force ) == 'undefined' ) {
121
121
122
122
return 'op=/' + op + '/' + this . src . encode ( ) + '/' + this . dest . encode ( ) + '&' ;
123
123
@@ -151,7 +151,7 @@ Client.prototype.batchMove = function(entries, onret) {
151
151
}
152
152
153
153
Client . prototype . forceBatchMove = function ( entries , force , onret ) {
154
-
154
+
155
155
fileHandleForce ( 'move' , entries , force , onret ) ;
156
156
157
157
}
@@ -161,9 +161,9 @@ Client.prototype.batchCopy = function(entries, onret) {
161
161
}
162
162
163
163
Client . prototype . forceBatchCopy = function ( entries , force , onret ) {
164
-
164
+
165
165
fileHandleForce ( 'copy' , entries , force , onret ) ;
166
-
166
+
167
167
}
168
168
169
169
@@ -256,6 +256,7 @@ function PutPolicy2(putPolicyObj) {
256
256
this . callbackHost = putPolicyObj . callbackHost || null ;
257
257
this . callbackBody = putPolicyObj . callbackBody || null ;
258
258
this . callbackBodyType = putPolicyObj . callbackBodyType || null ;
259
+ this . callbackFetchKey = putPolicyObj . callbackFetchKey || null ;
259
260
260
261
this . persistentOps = putPolicyObj . persistentOps || null ;
261
262
this . persistentNotifyUrl = putPolicyObj . persistentNotifyUrl || null ;
0 commit comments