aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-04-16 11:37:05 -0700
committerchrislusf <chris.lu@gmail.com>2015-04-16 11:37:05 -0700
commitc1bc529654d4034c08082568c6c93610ffc0a06e (patch)
tree29729d2f4225f7bbef622ee1175b5805eb61ca61 /go
parent087b839354d3d5d3376e87b919b46595548cbe53 (diff)
downloadseaweedfs-c1bc529654d4034c08082568c6c93610ffc0a06e.tar.xz
seaweedfs-c1bc529654d4034c08082568c6c93610ffc0a06e.zip
Use public url for returned file url result
Diffstat (limited to 'go')
-rw-r--r--go/operation/submit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/operation/submit.go b/go/operation/submit.go
index ca151dfb9..8bba14c5f 100644
--- a/go/operation/submit.go
+++ b/go/operation/submit.go
@@ -63,7 +63,7 @@ func SubmitFiles(master string, files []FilePart,
results[index].Error = err.Error()
}
results[index].Fid = file.Fid
- results[index].FileUrl = file.Server + "/" + file.Fid
+ results[index].FileUrl = ret.PublicUrl + "/" + file.Fid
}
return results, nil
}