diff options
-rwxr-xr-x | bollux | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bollux b/bollux index 29bda1e..b319e9d 100755 --- a/bollux +++ b/bollux | |||
@@ -220,12 +220,13 @@ handle() { # handle URL < RESPONSE | |||
220 | case "$code" in | 220 | case "$code" in |
221 | 1*) # INPUT | 221 | 1*) # INPUT |
222 | log 3 "Input" | 222 | log 3 "Input" |
223 | put "$meta" | 223 | RDRS=0 # this is not a redirect |
224 | ask "?" | 224 | ask "$meta" QUERY |
225 | bollux "$URL?$REPLY" | 225 | bollux "$URL?$QUERY" |
226 | ;; | 226 | ;; |
227 | 2*) # SUCCESS | 227 | 2*) # SUCCESS |
228 | log 3 "Success" | 228 | log 3 "Success" |
229 | RDRS=0 # this is not a redirect | ||
229 | case "$code" in | 230 | case "$code" in |
230 | 20) log 5 "- OK" ;; | 231 | 20) log 5 "- OK" ;; |
231 | 21) log 5 "- End of client certificate session" ;; | 232 | 21) log 5 "- End of client certificate session" ;; |
@@ -246,6 +247,7 @@ handle() { # handle URL < RESPONSE | |||
246 | ;; | 247 | ;; |
247 | 4*) # TEMPORARY FAILURE | 248 | 4*) # TEMPORARY FAILURE |
248 | log 2 "Temporary failure" | 249 | log 2 "Temporary failure" |
250 | RDRS=0 # this is not a redirect | ||
249 | case "$code" in | 251 | case "$code" in |
250 | 41) log 5 "- Server unavailable" ;; | 252 | 41) log 5 "- Server unavailable" ;; |
251 | 42) log 5 "- CGI error" ;; | 253 | 42) log 5 "- CGI error" ;; |
@@ -257,6 +259,7 @@ handle() { # handle URL < RESPONSE | |||
257 | ;; | 259 | ;; |
258 | 5*) # PERMANENT FAILURE | 260 | 5*) # PERMANENT FAILURE |
259 | log 2 "Permanent failure" | 261 | log 2 "Permanent failure" |
262 | RDRS=0 # this is not a redirect | ||
260 | case "$code" in | 263 | case "$code" in |
261 | 51) log 5 "- Not found" ;; | 264 | 51) log 5 "- Not found" ;; |
262 | 52) log 5 "- No longer available" ;; | 265 | 52) log 5 "- No longer available" ;; |
@@ -268,6 +271,7 @@ handle() { # handle URL < RESPONSE | |||
268 | ;; | 271 | ;; |
269 | 6*) # CLIENT CERT REQUIRED | 272 | 6*) # CLIENT CERT REQUIRED |
270 | log 2 "Client certificate required" | 273 | log 2 "Client certificate required" |
274 | RDRS=0 # this is not a redirect | ||
271 | case "$code" in | 275 | case "$code" in |
272 | 61) log 5 "- Transient cert requested" ;; | 276 | 61) log 5 "- Transient cert requested" ;; |
273 | 62) log 5 "- Authorized cert required" ;; | 277 | 62) log 5 "- Authorized cert required" ;; |