File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 8
8
access_key = ""
9
9
secret_key = ""
10
10
11
- target_url = ""
11
+ src_url = ""
12
12
dest_bucket = ""
13
13
dest_key = ""
14
14
15
- encoded_url = b64e (target_url )
15
+ encoded_url = b64e (src_url )
16
16
dest_entry = "%s:%s" % (dest_bucket , dest_key )
17
17
encoded_entry = b64e (dest_entry )
18
18
19
-
20
19
api_host = "iovip.qbox.me"
21
20
api_path = "/fetch/%s/to/%s" % (encoded_url , encoded_entry )
22
21
28
27
print "failed"
29
28
print err
30
29
else :
31
- print "success"
30
+ print "success"
Original file line number Diff line number Diff line change 16
16
17
17
18
18
api_host = "iovip.qbox.me"
19
- api_path = "/prefetch/%s" % (encoded_entry , )
19
+ api_path = "/prefetch/%s" % (encoded_entry )
20
20
21
21
mac = digest .Mac (access = access_key , secret = secret_key )
22
22
client = digest .Client (host = api_host , mac = mac )
26
26
print "failed"
27
27
print err
28
28
else :
29
- print "success"
29
+ print "success"
You can’t perform that action at this time.
0 commit comments