Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Kempe
Meerkat
Commits
94b88a74
Commit
94b88a74
authored
Aug 13, 2020
by
StreatCodes
Browse files
return non-relative URL for images
parent
b7c96bdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
upload.go
View file @
94b88a74
...
...
@@ -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
)
})
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment