Gitlab Community Edition Instance

Commit bde5c7ee authored by Marcel Hellkamp's avatar Marcel Hellkamp
Browse files

fix #2: Forward parameters if file is uploaded by string path

parent a0e0fd5e
__version__ = "3.0.dev0" __version__ = "3.0.dev1"
__url__ = "https://cdstar.gwdg.de/" __url__ = "https://cdstar.gwdg.de/"
from pycdstar3.api import * # noqa: F403 F401 from pycdstar3.api import * # noqa: F403 F401
......
...@@ -271,7 +271,7 @@ class CDStar: ...@@ -271,7 +271,7 @@ class CDStar:
if isinstance(source, PATH_TYPES): if isinstance(source, PATH_TYPES):
with open(source, "rb") as source: with open(source, "rb") as source:
return self.put_file( return self.put_file(
vault, archive, name, source, type=None, replace=True vault, archive, name, source, type=type, replace=replace
) )
headers = {"Content-Type": type or "application/x-autodetect"} headers = {"Content-Type": type or "application/x-autodetect"}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment