mirror of https://github.com/perkeep/perkeep.git
gofix: get finalurl
This commit is contained in:
parent
3073e02803
commit
35e61582db
|
@ -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.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue