leave the logic to the caller
This commit is contained in:
parent
b72fe55acd
commit
54517b5440
@ -156,18 +156,11 @@ char *reverse_rewrite_url (struct conn_s *connptr, hashmap_t hashofheaders,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Forward proxy support off and no reverse path match found */
|
if (rewrite_url == NULL) {
|
||||||
if (config.reverseonly && !rewrite_url) {
|
|
||||||
log_message (LOG_ERR, "Bad request");
|
|
||||||
indicate_http_error (connptr, 400, "Bad Request",
|
|
||||||
"detail",
|
|
||||||
"Request has an invalid URL", "url", url,
|
|
||||||
NULL);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
log_message (LOG_CONN, "Rewriting URL: %s -> %s", url,
|
log_message (LOG_CONN, "Rewriting URL: %s -> %s", url, rewrite_url);
|
||||||
rewrite_url ? rewrite_url : "No mapping found");
|
|
||||||
|
|
||||||
/* Store reverse path so that the magical tracking cookie can be set */
|
/* Store reverse path so that the magical tracking cookie can be set */
|
||||||
if (config.reversemagic && reverse)
|
if (config.reversemagic && reverse)
|
||||||
|
Loading…
Reference in New Issue
Block a user