mirror of
https://github.com/hibiken/asynqmon.git
synced 2026-04-26 17:45:50 +03:00
[PR #264] [MERGED] Add MIME type to served files #1000
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynqmon#1000
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynqmon/pull/264
Author: @ArneZsng
Created: 8/23/2022
Status: ✅ Merged
Merged: 12/18/2022
Merged by: @hibiken
Base:
master← Head:master📝 Commits (2)
dd733feAdd MIME type to served files665f340Update static.go📊 Changes
1 file changed (+8 additions, -0 deletions)
View changed files
📝
static.go(+8 -0)📄 Description
Currently, all JS files are served as "content-type: text/plain; charset=utf-8" which is a problem if MIME sniffing is disabled for the domain that Asynqmon is hosted on.
This PR sets the Content-Type header manually for files ending in .js and tries to detect the MIME type for other files.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.