Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
63579fd2
authored
Nov 11, 2019
by
Bálint Máhonfai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flake8 warning
parent
4b88e9f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
disk.py
+4
-2
No files found.
disk.py
View file @
63579fd2
...
@@ -285,9 +285,11 @@ class Disk(object):
...
@@ -285,9 +285,11 @@ class Disk(object):
with
open
(
exported_path
,
'rb'
)
as
exported_disk
:
with
open
(
exported_path
,
'rb'
)
as
exported_disk
:
try
:
try
:
m
=
MultipartEncoder
(
m
=
MultipartEncoder
(
{
'data'
:
(
exported_name
+
'.'
+
format_dict
[
format
],
exported_disk
)}
{
'data'
:
(
exported_name
+
'.'
+
format_dict
[
format
],
exported_disk
)}
)
)
response
=
requests
.
post
(
upload_link
,
response
=
requests
.
post
(
upload_link
,
data
=
m
,
data
=
m
,
headers
=
{
'Content-Type'
:
m
.
content_type
},
headers
=
{
'Content-Type'
:
m
.
content_type
},
params
=
{
'no_redirect'
:
''
})
params
=
{
'no_redirect'
:
''
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment