Use https links. Use iota for pasteType and pasteState to preserve type

This commit is contained in:
2019-11-29 18:36:27 +01:00
parent df86d5836a
commit b3357185f4
3 changed files with 15 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ the command line.
## USAGE
# Upload a file
curl -F'file=@yourfile.png' <a href="{{.Request.Host}}">{{.Request.Host}}</a>
curl -F'file=@yourfile.png' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a>
# Shorten a URL
curl -F'shorten=http://example.com/some/long/url' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a>
@@ -17,4 +17,4 @@ the command line.
# Shorten a URL with a token to delete it later
curl -F'shorten=http://example.com/some/long/url' -F'deleteToken=' <a href="//{{.Request.Host}}">https://{{.Request.Host}}</a>
</pre>
{{end}}
{{end}}

View File

@@ -7,7 +7,7 @@ the command line.
## USAGE
# Upload a file
curl -F'file=@yourfile.png' {{.Request.Host}}
curl -F'file=@yourfile.png' https://{{.Request.Host}}
# Shorten a URL
curl -F'shorten=http://example.com/some/long/url' https://{{.Request.Host}}