Commit 94b88a74 authored by StreatCodes's avatar StreatCodes
Browse files

return non-relative URL for images

parent b7c96bdf
......@@ -38,5 +38,5 @@ func handleUpload(w http.ResponseWriter, r *http.Request) {
fmt.Printf("Created file %s\n", filepath)
enc := json.NewEncoder(w)
enc.Encode(ResponseURL{URL: filepath})
enc.Encode(ResponseURL{URL: path.Join("/", filepath)})
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment