It'd be nice if type errors caused the compiler to issue a type error

This commit is contained in:
2025-01-01 01:18:10 +02:00
parent 28189cb33c
commit f1d2c5f06b

View File

@@ -12,7 +12,7 @@ menu="fuzzel -d -p "
#menu="fzf -i --prompt=" #menu="fzf -i --prompt="
apiurl="https://coverapi.store" apiurl="https://coverapi.store"
### Curl constants ### Curl constants
USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0" USER_AGENT="Mozilla/6.0 (Windows NT 8.0; Win64; x64; rv:117.0) Gecko/20100101 Firefox/117.0"
ACCEPT="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" ACCEPT="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
ACCEPT_LANGUAGE="Accept-Language: en-US,en;q=0.5" ACCEPT_LANGUAGE="Accept-Language: en-US,en;q=0.5"
CONNECTION="Connection: keep-alive" CONNECTION="Connection: keep-alive"
@@ -68,7 +68,7 @@ function curlRequest {
if [[ "$DEBUG" == "off" ]]; then if [[ "$DEBUG" == "off" ]]; then
response="$(curl -s -L \ response="$(curl_ff117 -s -L \
-c "$GRPOPPRO_COOKIE_FILE" \ -c "$GRPOPPRO_COOKIE_FILE" \
-b "$GRPOPPRO_COOKIE_FILE" \ -b "$GRPOPPRO_COOKIE_FILE" \
"$url" \ "$url" \
@@ -91,7 +91,7 @@ function curlRequest {
fi fi
local curl_command=( local curl_command=(
"curl" "curl_ff117"
"-s" "-s"
"-L" "-L"
"-c $GRPOPPRO_COOKIE_FILE" "-c $GRPOPPRO_COOKIE_FILE"
@@ -100,12 +100,12 @@ function curlRequest {
"--compressed" "--compressed"
"-X" "-X"
"$custom_method" "$custom_method"
"-A $USER_AGENT"
"-H $custom_accept" "-H $custom_accept"
"-H $ACCEPT_LANGUAGE"
"-H $CONNECTION"
"$@" "$@"
) )
# "-A $USER_AGENT"
# "-H $ACCEPT_LANGUAGE"
# "-H $CONNECTION"
# "-H $UP_IN_REQ" # "-H $UP_IN_REQ"
{ {