1.34b: A small tweak to file / dir discriminator logic to accommodate quirky frameworks.

This commit is contained in:
Steve Pinkham 2010-05-06 22:59:07 -04:00
parent 8d7293fb5f
commit 347a8b4b58
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
Version 1.34b:
--------------
- A small tweak to file / dir discriminator logic to accommodate
quirky frameworks.
Version 1.33b:
--------------

View File

@ -23,7 +23,7 @@
#ifndef _HAVE_CONFIG_H
#define _HAVE_CONFIG_H
#define VERSION "1.33b"
#define VERSION "1.34b"
#define USE_COLOR 1 /* Use terminal colors */

View File

@ -2788,7 +2788,7 @@ static u8 unknown_check_callback(struct http_request* req,
and if it is 404, assume file.
We also have a special case if the original request returned a
non-empty 2xx response, but the new one returned 4xx or 5xx - this is
non-empty 2xx response, but the new one returned 3xx-5xx - this is
likely a file, too. */
if (same_page(&RPRES(req)->sig, &res->sig)) goto assume_dir; else {
@ -2800,7 +2800,7 @@ static u8 unknown_check_callback(struct http_request* req,
if (same_page(&res->sig, &par->r404[i])) break;
if ((!par && res->code == 404) || (par && i != par->r404_cnt) ||
(RPRES(req)->code < 300 && res->code >= 400 && RPRES(req)->pay_len)) {
(RPRES(req)->code < 300 && res->code >= 300 && RPRES(req)->pay_len)) {
req->pivot->type = PIVOT_FILE;