diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-04-16 11:37:05 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-04-16 11:37:05 -0700 |
| commit | c1bc529654d4034c08082568c6c93610ffc0a06e (patch) | |
| tree | 29729d2f4225f7bbef622ee1175b5805eb61ca61 /go | |
| parent | 087b839354d3d5d3376e87b919b46595548cbe53 (diff) | |
| download | seaweedfs-c1bc529654d4034c08082568c6c93610ffc0a06e.tar.xz seaweedfs-c1bc529654d4034c08082568c6c93610ffc0a06e.zip | |
Use public url for returned file url result
Diffstat (limited to 'go')
| -rw-r--r-- | go/operation/submit.go | 2 |
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 } |
