mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
remove svg mime type extension
Signed-off-by: sakeven <jc5930@sina.cn>
This commit is contained in:
parent
5ca03d674e
commit
795953c0c4
@ -18,7 +18,6 @@ package server
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"mime"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -223,13 +222,6 @@ func (s emptyDelegate) OpenAPISpec() *spec.Swagger {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
|
||||||
// Send correct mime type for .svg files.
|
|
||||||
// TODO: remove when https://github.com/golang/go/commit/21e47d831bafb59f22b1ea8098f709677ec8ce33
|
|
||||||
// makes it into all of our supported go versions (only in v1.7.1 now).
|
|
||||||
mime.AddExtensionType(".svg", "image/svg+xml")
|
|
||||||
}
|
|
||||||
|
|
||||||
// RequestContextMapper is exposed so that third party resource storage can be build in a different location.
|
// RequestContextMapper is exposed so that third party resource storage can be build in a different location.
|
||||||
// TODO refactor third party resource storage
|
// TODO refactor third party resource storage
|
||||||
func (s *GenericAPIServer) RequestContextMapper() apirequest.RequestContextMapper {
|
func (s *GenericAPIServer) RequestContextMapper() apirequest.RequestContextMapper {
|
||||||
|
Loading…
Reference in New Issue
Block a user