From da87d54d72a08a018de7bdd74b32f16b5d0d1de7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 5 Dec 2016 19:40:56 +1100 Subject: [PATCH] Image Upload: [teknik] Fix file type --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0203ae65..dc9e85c7 100755 --- a/neofetch +++ b/neofetch @@ -2347,7 +2347,7 @@ scrot_upload() { case "$image_host" in "teknik") - image_url="$(curl -sf -F file="@${image_file}" "https://api.teknik.io/v1/Upload")" + image_url="$(curl -sf -F file="@${image_file};type=image/png" "https://api.teknik.io/v1/Upload")" image_url="$(awk -F 'url:|,' '{printf $2}' <<< "${image_url//\"}")" ;;