Skip to content

Commit

Permalink
Fix file extension mapping in content_types dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
TzuH-Hsu committed Mar 21, 2024
1 parent c3e2c74 commit 6d35455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parquetizer/_source_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def write(self, file: str, buffer: BytesIO) -> None:
"""
# Dictionary mapping of file extensions to content types
content_types = {
".parquet": "application/vnd.apache.parquet",
".json": "application/json",
"parquet": "application/vnd.apache.parquet",
"json": "application/json",
}

# Default content type if no match found
Expand Down

0 comments on commit 6d35455

Please sign in to comment.