mirror of https://github.com/perkeep/perkeep.git
update for Go change
Change-Id: Ibe1507e8cf3f9d1f8196201739e9c74a9b9d8e0a
This commit is contained in:
parent
9ce137e66d
commit
81cc07f564
|
@ -165,7 +165,7 @@ func serveFile(w http.ResponseWriter, r *http.Request, name string, fs FileSyste
|
|||
// TODO(adg): handle multiple ranges
|
||||
ranges, err := parseRange(r.Header.Get("Range"), size)
|
||||
if err == nil && len(ranges) > 1 {
|
||||
err = os.ErrorString("multiple ranges not supported")
|
||||
err = os.NewError("multiple ranges not supported")
|
||||
}
|
||||
if err != nil {
|
||||
http.Error(w, err.String(), http.StatusRequestedRangeNotSatisfiable)
|
||||
|
|
Loading…
Reference in New Issue