From 81cc07f5647059f421dbc8aafd101b8523a2bf7c Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 22 Jun 2011 15:38:03 -0700 Subject: [PATCH] update for Go change Change-Id: Ibe1507e8cf3f9d1f8196201739e9c74a9b9d8e0a --- lib/go/camli/misc/vfs/servefile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/go/camli/misc/vfs/servefile.go b/lib/go/camli/misc/vfs/servefile.go index 42b9843ed..8d448b2dc 100644 --- a/lib/go/camli/misc/vfs/servefile.go +++ b/lib/go/camli/misc/vfs/servefile.go @@ -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)