1
0
Fork 0

readwwwlog: allow text/x-makefile and so on

This commit is contained in:
tastytea 2023-02-10 14:11:55 +01:00
parent 7ef9b7f1e9
commit 298b215c3d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ for url in ${urls}; do
cmd=(${TERMINAL} ${termopts} -e ${cmd})
fi
if [[ ${headers[(I)*text/plain*]} -ne 0 ]] || \
if [[ ${headers[(I)*text/*]} -ne 0 ]] || \
[[ ${headers[(I)*HTTP/1.1 405*]} -ne 0 ]]; then # No HEAD allowed
[[ ${url} =~ 'dpaste\.com' ]] && sleep 1
local file="$(mktemp --suffix='.readwwwlog')"