mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
handle special case when browser also asks for favicon.ico
git-svn-id: https://weed-fs.googlecode.com/svn/trunk@53 282b0af5-e82d-9cf1-ede4-77906d7719d0
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"pkg/util"
|
||||
"strings"
|
||||
"pkg/util"
|
||||
)
|
||||
|
||||
type Needle struct {
|
||||
@@ -47,7 +47,9 @@ func NewNeedle(r *http.Request) (n *Needle, e error) {
|
||||
func (n *Needle) ParsePath(fid string) {
|
||||
length := len(fid)
|
||||
if length <= 8 {
|
||||
log.Println("Invalid fid", fid, "length", length)
|
||||
if length > 0 {
|
||||
log.Println("Invalid fid", fid, "length", length)
|
||||
}
|
||||
return
|
||||
}
|
||||
n.Key, n.Cookie = ParseKeyHash(fid)
|
||||
|
Reference in New Issue
Block a user