Explorar o código

fix svg content-type wrong(#233)

IricBing95 %!s(int64=3) %!d(string=hai) anos
pai
achega
7b91db6bdc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      http/httpdef.h

+ 1 - 1
http/httpdef.h

@@ -167,7 +167,7 @@ enum http_method {
     XX(IMAGE_PNG,               image/png,                png)          \
     XX(IMAGE_GIF,               image/gif,                gif)          \
     XX(IMAGE_BMP,               image/bmp,                bmp)          \
-    XX(IMAGE_SVG,               image/svg,                svg)          \
+    XX(IMAGE_SVG,               image/svg+xml,            svg)          \
     XX(VIDEO_AVI,               video/x-msvideo,          avi)          \
     XX(VIDEO_TS,                video/mp2t,               ts)           \
     XX(VIDEO_WEBM,              video/webm,               webm)         \