From 35e61582dbb1980555ce04a14ff3630a7ff315bd Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 14 May 2011 16:40:31 -0700 Subject: [PATCH] gofix: get finalurl --- lib/go/camli/client/upload.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/go/camli/client/upload.go b/lib/go/camli/client/upload.go index caaf59e29..d6ccb1a1f 100644 --- a/lib/go/camli/client/upload.go +++ b/lib/go/camli/client/upload.go @@ -331,7 +331,7 @@ func (c *Client) Upload(h *UploadHandle) (*PutResult, os.Error) { return error("303 Location URL relative resolve error: %v", err) } otherLocation = absUrl.String() - resp, _, err = http.Get(otherLocation) + resp, err = http.Get(otherLocation) if err != nil { return error("error following 303 redirect after upload: %v", err) } @@ -381,4 +381,3 @@ func (c *Client) Upload(h *UploadHandle) (*PutResult, os.Error) { return nil, os.NewError("Server didn't receive blob.") } -