Permalink
Browse files

* dump.bitcheese.net: httpsification

  • Loading branch information...
l29ah committed Apr 23, 2017
1 parent 684c567 commit 0ac414f38eaaa05b2fec15e89d0b168ed247711e
Showing with 2 additions and 1 deletion.
  1. +2 −1 dump.bitcheese.net/dump
View
@@ -1,7 +1,8 @@
#!/bin/bash
set -o pipefail
up() {
sum=`sha512sum "$1" | cut -d\ -f1`
url=`curl -sf https://dump.bitcheese.net/search/sha512/$sum?simple` && echo $url || {
url=`curl -sf https://dump.bitcheese.net/search/sha512/$sum?simple | sed -e 's#http#https#'` && echo $url || {
curl -sw %{redirect_url} -F "file=@\"$1\"" https://dump.bitcheese.net/upload-file?simple | sed -e 's#http#https#' | urldecode
echo
}

0 comments on commit 0ac414f

Please sign in to comment.