File 0001-susepaste-Fix-parsing-of-returned-Location-header.patch of Package susepaste
From 86a31fca451c5242f216f6a7eb87ec43de749925 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Tue, 31 Mar 2020 19:12:44 +0200
Subject: [PATCH] susepaste: Fix parsing of returned Location header
---
script/susepaste | 2 +-
script/susepaste-screenshot | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/script/susepaste b/script/susepaste
index f2fceec..b09ba16 100755
--- a/script/susepaste
+++ b/script/susepaste
@@ -121,7 +121,7 @@ URL="`
curl -v -F "$TYPE=$INPUT" -F "title=$TITLE" -F "expire=$EXPIRE" \
-F "name=$NICK" -F "submit=submit" -F "lang=$SYNTAX" \
$API_KEY \
- ${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `"
+ ${SCHEMA}://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
# Check the results and inform the user
diff --git a/script/susepaste-screenshot b/script/susepaste-screenshot
index cb75337..057d41f 100755
--- a/script/susepaste-screenshot
+++ b/script/susepaste-screenshot
@@ -96,7 +96,7 @@ URL="`
curl -v -F "file=@$TMP" -F "title=$TITLE" -F "expire=$EXPIRE" \
-F "name=$NICK" -F "submit=submit" -F "lang=image" \
$API_KEY \
- http://susepaste.org 2>&1 | sed -n 's|<\ Location:\ ||p' `"
+ http://susepaste.org 2>&1 | sed -n 's|<\ [lL]ocation:\ ||p' `"
rm -f "$TMP"
--
2.26.0