Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
pycdstar3
Commits
bde5c7ee
Commit
bde5c7ee
authored
Jul 27, 2020
by
Marcel Hellkamp
Browse files
fix
#2
: Forward parameters if file is uploaded by string path
parent
a0e0fd5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pycdstar3/__init__.py
View file @
bde5c7ee
__version__
=
"3.0.dev
0
"
__version__
=
"3.0.dev
1
"
__url__
=
"https://cdstar.gwdg.de/"
from
pycdstar3.api
import
*
# noqa: F403 F401
...
...
src/pycdstar3/api.py
View file @
bde5c7ee
...
...
@@ -271,7 +271,7 @@ class CDStar:
if
isinstance
(
source
,
PATH_TYPES
):
with
open
(
source
,
"rb"
)
as
source
:
return
self
.
put_file
(
vault
,
archive
,
name
,
source
,
type
=
Non
e
,
replace
=
Tru
e
vault
,
archive
,
name
,
source
,
type
=
typ
e
,
replace
=
replac
e
)
headers
=
{
"Content-Type"
:
type
or
"application/x-autodetect"
}
...
...
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