Skip to content

Commit ef6f6e7

Browse files
Del: log prints.
1 parent d0bae90 commit ef6f6e7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

jigsawstack/store.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def upload(self, file: bytes, options: Union[FileUploadParams, None] = None) ->
3535
options = {}
3636

3737
path = build_path(base_path="/store/file", params=options)
38-
print(path)
3938
content_type = options.get("content_type", "application/octet-stream")
4039

4140
_headers = {"Content-Type": content_type}
@@ -93,14 +92,11 @@ async def upload(self, file: bytes, options: Union[FileUploadParams, None] = Non
9392
options = {}
9493

9594
path = build_path(base_path="/store/file", params=options)
96-
content_type = options.get("content_type")
97-
_headers = {"Content-Type": "application/octet-stream"}
98-
if content_type is not None:
99-
_headers = {"Content-Type": content_type}
100-
95+
content_type = options.get("content_type", "application/octet-stream")
96+
_headers = {"Content-Type": content_type}
10197
resp = await AsyncRequest(
10298
config=self.config,
103-
params={}, # Empty params since we're using them in the URL
99+
params=options, # Empty params since we're using them in the URL
104100
path=path,
105101
data=file,
106102
headers=_headers,
@@ -123,7 +119,7 @@ async def delete(self, key: str) -> FileDeleteResponse:
123119
resp = AsyncRequest(
124120
config=self.config,
125121
path=path,
126-
params=cast(Dict[Any, Any], params={}),
122+
params=key,
127123
verb="delete",
128124
).perform_with_content()
129125
return resp

0 commit comments

Comments
 (0)