diff options
author | Case Duckworth | 2020-06-08 15:30:20 -0500 |
---|---|---|
committer | Case Duckworth | 2020-06-08 15:30:20 -0500 |
commit | ade0ac25fe4eb69e8498fd1adcb48f4c7fcb68e8 (patch) | |
tree | a41d0a9cfc50d9059e38d2a5fc34fc976f924081 | |
parent | Fix bye message (diff) | |
download | bollux-ade0ac25fe4eb69e8498fd1adcb48f4c7fcb68e8.tar.gz bollux-ade0ac25fe4eb69e8498fd1adcb48f4c7fcb68e8.zip |
Set BOLLUX_URL on 3* status codes
-rwxr-xr-x | bollux | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bollux b/bollux index 6b99ceb..10a0c65 100755 --- a/bollux +++ b/bollux | |||
@@ -420,6 +420,7 @@ gemini_response() { # gemini_response URL | |||
420 | if ((REDIRECTS > BOLLUX_MAXREDIR)); then | 420 | if ((REDIRECTS > BOLLUX_MAXREDIR)); then |
421 | die $((100 + code)) "Too many redirects!" | 421 | die $((100 + code)) "Too many redirects!" |
422 | fi | 422 | fi |
423 | BOLLUX_URL="$url" | ||
423 | run blastoff "$meta" # TODO: confirm redirect | 424 | run blastoff "$meta" # TODO: confirm redirect |
424 | ;; | 425 | ;; |
425 | 4*) # temporary error | 426 | 4*) # temporary error |