From e1cae3b15b1a85fcb2ef30fee0076ae3a8d23856 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 6 May 2016 14:32:08 -0400 Subject: PLT-2600/PLT-2770 Changed getPublicLink api call to return a proper JSON string (#2914) * Removed unused channelId and userId parameters from web client getPublicLink method * Changed getPublicLink api call to return a proper JSON string --- api/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/file.go') diff --git a/api/file.go b/api/file.go index ca2aeee20..6cda48866 100644 --- a/api/file.go +++ b/api/file.go @@ -529,7 +529,7 @@ func getPublicLink(c *Context, w http.ResponseWriter, r *http.Request) { return } - w.Write([]byte(url)) + w.Write([]byte(model.StringToJson(url))) } func getExport(c *Context, w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22