Skip to content

Commit

Permalink
handle css mime types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyshaw89 authored and apparentlymart committed Jan 20, 2017
1 parent f6cdf74 commit 62ee0be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func main() {
// If we start to need a set of overrides for DetectContentType
// then we need to find a different way to do this.
contentType = "image/svg+xml"
} else if strings.HasSuffix(relPath, ".css") {
// If we start to need a set of overrides for DetectContentType
// then we need to find a different way to do this.
contentType = "text/css"
} else {
contentType = http.DetectContentType(fileBytes)
}
Expand Down

0 comments on commit 62ee0be

Please sign in to comment.