openlawlibrary / stelae

Preservation, Authentication, Access
GNU Affero General Public License v3.0
7 stars 1 forks source link

Resolve mime-type for document with dots in filename correctly #21

Closed n-dusan closed 1 year ago

n-dusan commented 1 year ago

Documents with dots in their names aren't getting resolved correctly in get_contenttype utils function. An example would be 10.04.040, which should get resolved to an html mime-type, but defaults to application/octet-stream by actix-files crate.