Skip to content

Commit

Permalink
Alternative fix for #177 (#180)
Browse files Browse the repository at this point in the history
- Try -1 for missing content-length header to sidestep downstream data ingestion bug
  • Loading branch information
zstumgoren authored Apr 4, 2024
1 parent 4e13b0a commit a7775f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civic_scraper/platforms/civic_plus/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _build_asset_collection(self, metadata):
asset_args.update(
{
"content_type": headers["content-type"],
"content_length": headers.get("content-length"),
"content_length": headers.get("content-length", -1),
}
)
assets.append(Asset(**asset_args))
Expand Down

0 comments on commit a7775f1

Please sign in to comment.