Skip to content

Commit

Permalink
force .scd to text as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ngwese committed Mar 22, 2022
1 parent c516419 commit 905413d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (s *server) listingHandler(ctx *gin.Context) {
// https://github.com/monome/maiden/issues/219
// if the file extension is .sc force `text/plain; charset=utf-8`
ext := filepath.Ext(path)
if ext == ".sc" {
if ext == ".sc" || ext == ".scd" {
logger.Debugf("overriding content type for: %s", ext)
ctx.Header("Content-Type", "text/plain; charset=utf-8")
}
Expand Down

0 comments on commit 905413d

Please sign in to comment.