Skip to content

Missing mime type for otf files (opentype fonts) ? #352

@arnaudruffin

Description

@arnaudruffin

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?
CF :

  • api_version 2.195.0
  • osbapi_version 2.15
    CF-CLI: 8.2.0+fd8fbca64.2022-02-09

What version of the buildpack you are using?
staticfile_buildpack_v1_5_36

If you were attempting to accomplish a task, what was it you were attempting to do?
I expose some otf assets

What did you expect to happen?
I would expect them to be exposed with "Content-Type: font/otf" (and with Content-Encoding: gzip)

What was the actual behavior?
The files are served, but with Content-Type: application/octet-stream

I am under the impression that the configuration is missing from mime.types.
I saw the following issue + PR #87 that added the configuration for the other types of font, but not for otf files.

I wanted to check and push a pull request but I can't make out how the mime.types file is generated/retrieved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions