We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71347b8 commit 20de6b8Copy full SHA for 20de6b8
libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h
@@ -77,10 +77,11 @@ class StaticRequestHandler : public RequestHandler {
77
else if (path.endsWith(".gif")) return "image/gif";
78
else if (path.endsWith(".jpg")) return "image/jpeg";
79
else if (path.endsWith(".ico")) return "image/x-icon";
80
+ else if (path.endsWith(".svg")) return "image/svg+xml";
81
else if (path.endsWith(".xml")) return "text/xml";
82
else if (path.endsWith(".pdf")) return "application/pdf";
83
else if (path.endsWith(".zip")) return "application/zip";
- return "text/plain";
84
+ return "application/octet-stream";
85
}
86
87
protected:
0 commit comments