Skip to content

Commit 735a2df

Browse files
committed
minor default fix in SaveResult.get_mimetype
just eliminates unused arg behavior should stay the same
1 parent 5155624 commit 735a2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo_driver/save_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def flask_response_from_write_assets(self) -> Response:
9393
return send_from_directory(path.parent, path.name, mimetype=mimetype)
9494

9595
def get_mimetype(self, default="application/octet-stream"):
96-
return IOFORMATS.get_mimetype(self.format)
96+
return IOFORMATS.get_mimetype(self.format, default=default)
9797

9898
def add_workspace_export(self, workspace_id: str, merge: Optional[str]):
9999
# TODO: should probably return a copy (like with_format) but does not work well with evaluate() returning

0 commit comments

Comments
 (0)