Browse Source

http->https for paste.

master
Brett Bohnenkamper 5 years ago
parent
commit
752229ad4e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Paste/paste.sh

+ 2
- 2
Paste/paste.sh View File

@@ -74,7 +74,7 @@ else
fi

if [[ -n "${input}" ]]; then
output=$(curl --silent --data "${querystring}" --data-urlencode "code=${input}" http://api.teknik.io/paste)
output=$(curl --silent --data "${querystring}" --data-urlencode "code=${input}" https://api.teknik.io/paste)
pasteid=$(grep -Eo '"id":[0-9]+' <<< "${output}" | sed 's/\\//g')
pasteid="${pasteid##\"id\":}"
if [[ -n "${pasteid}" ]]; then
@@ -82,7 +82,7 @@ if [[ -n "${input}" ]]; then
[[ -n "${expiry}" ]] && printf "Expiration Specified: ${expiry}\n"
[[ -n "${format}" ]] && printf "Paste Format Specified: ${format}\n"
[[ -n "${password}" ]] && printf "Paste is password protected!\n"
printf "Your paste can be found at http://p.teknik.io/${pasteid}\n"
printf "Your paste can be found at https://p.teknik.io/${pasteid}\n"
exit 0
else
printf "There was an error submitting your paste! We are sorry."

Loading…
Cancel
Save