Skip to content

Commit

Permalink
Serve SVGZ files with correct Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-muc committed Jul 3, 2018
1 parent 67319d8 commit eebbe28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -2081,6 +2081,7 @@ int mwGetContentType(const char *pchExtname)
case FILEEXT_JPG: return HTTPFILETYPE_JPEG;
case FILEEXT_GIF: return HTTPFILETYPE_GIF;
case FILEEXT_SVG: return HTTPFILETYPE_SVG;
case FILEEXT_SVGZ: return HTTPFILETYPE_SVG;
case FILEEXT_SWF: return HTTPFILETYPE_SWF;
case FILEEXT_MPA: return HTTPFILETYPE_MPA;
case FILEEXT_MPG: return HTTPFILETYPE_MPEG;
Expand Down
1 change: 1 addition & 0 deletions httpint.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#define FILEEXT_JPG DEFDWORD('J','P','G',0)
#define FILEEXT_PNG DEFDWORD('P','N','G',0)
#define FILEEXT_SVG DEFDWORD('S','V','G',0)
#define FILEEXT_SVGZ DEFDWORD('S','V','G','Z')
#define FILEEXT_CSS DEFDWORD('C','S','S',0)
#define FILEEXT_JS DEFDWORD('J','S',0,0)
#define FILEEXT_SWF DEFDWORD('S','W','F',0)
Expand Down

0 comments on commit eebbe28

Please sign in to comment.