Add port to url of UploadArticleImage()
This commit is contained in:
parent
91ef195a56
commit
ab6b9b9a4f
@ -502,7 +502,7 @@ func UploadArticleImage(c *b.Config, s *b.CookieStore) http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
url := fmt.Sprint(c.Domain, "/image/serve/", filename)
|
||||
url := fmt.Sprint(c.Domain, c.Port, "/image/serve/", filename)
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
json.NewEncoder(w).Encode(url)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user