Skip to content

Commit

Permalink
feat: auto-detect file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Sep 14, 2021
1 parent 0bd3310 commit 9ff3ced
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gosling/experimental/_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def __init__(
route: Optional[str] = None,
):
self.filepath = filepath
extension = extension or filepath.suffix.lstrip('.')
super().__init__(
provider=provider, headers=headers, extension=extension, route=route
)
Expand Down

0 comments on commit 9ff3ced

Please sign in to comment.