Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ESCAPE2020
WP3
ZenodoCI
Commits
5fab5bf5
Commit
5fab5bf5
authored
Aug 03, 2020
by
Enrique
Browse files
forgotten json content type in the new entry creation
parent
ccf9fddd
Pipeline
#78658
failed with stage
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
.zenodoci/zenodoapi.py
.zenodoci/zenodoapi.py
+1
-1
No files found.
.zenodoci/zenodoapi.py
View file @
5fab5bf5
...
...
@@ -44,7 +44,7 @@ class ZenodoAPI:
headers
=
{
"Content-Type"
:
"application/json"
}
parameters
=
{
'access_token'
:
self
.
access_token
}
return
requests
.
post
(
url
,
headers
=
headers
,
params
=
parameters
)
return
requests
.
post
(
url
,
json
=
{},
headers
=
headers
,
params
=
parameters
)
def
upload_file_entry
(
self
,
entry_id
,
name_file
,
path_file
):
"""
...
...
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