We are currently using GitHub Pages as a simple API mock server. We put all mock files under docs/ and simply GET username.github.io/project/api/someAPI to retrieve data. However, by default, the Content-Type returned by GitHub Pages is application/octet-stream instead of application/json for files with no extensions, therefore our frontend code throws errors when parsing the result.
I want to know is there any way to change the returned Content-Type for files with no extension on GitHub Pages?