Skip to content

Commit

Permalink
Successfully load compressed databases mime-typed as "application/x-tar"
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Sep 20, 2022
1 parent f1e5d2f commit c6ef09a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- failed load of .tgz database when its mime type is listed as "application/x-tar"

## [2.3.5] - 2022-09-20

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions src/locus_loader.erl
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,8 @@ fetched_database_format_and_blob({remote, From}, #{headers := Headers, body := B
{tgz, Body};
{{_, "application/x-tgz"}, _} ->
{tgz, Body};
{{_, "application/x-tar"}, <<?GZIP_MAGIC_BYTES, _/bytes>>} ->
{tgz, Body};
{{_, "application/x-tar"}, _} ->
{tarball, Body};
{_, <<?GZIP_MAGIC_BYTES, _/bytes>>} ->
Expand Down

0 comments on commit c6ef09a

Please sign in to comment.