|
@ -143,8 +143,8 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) |
|
|
func (vs *VolumeServer) FaviconHandler(w http.ResponseWriter, r *http.Request) { |
|
|
func (vs *VolumeServer) FaviconHandler(w http.ResponseWriter, r *http.Request) { |
|
|
data, err := images.Asset("favicon/favicon.ico") |
|
|
data, err := images.Asset("favicon/favicon.ico") |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
glog.V(2).Infoln("favicon read error:", err) |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
glog.V(2).Infoln("favicon read error:", err) |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if e := writeResponseContent("favicon.ico", "image/x-icon", bytes.NewReader(data), w, r); e != nil { |
|
|
if e := writeResponseContent("favicon.ico", "image/x-icon", bytes.NewReader(data), w, r); e != nil { |
|
|