mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fmt
This commit is contained in:
parent
74b045e9b6
commit
3fb98a904b
|
@ -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)
|
glog.V(2).Infoln("favicon read error:", err)
|
||||||
return
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue