Wrong content-type on files
Hi, I am trying to access raw files using an Auth Token and ran into som issues.
As far as I understood Auth Tokens are not trusted for direct raw file access, but the API endpoint does trust them.
What is confusing to me is that when I access the same API endpoint (e.g. https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-vscode-extension/repository/files/src%2Fextension.ts/raw?ref=typescript) I get application/json
with HTTP HEAD
and text/plain
with HTTP GET
...
Also I'd have expected to get application/typescript
for .ts
files.
This is currently a showstopper for me, as I am using Deno.
Any help would be greatly appreciated :-)