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 (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);
|
||||
if (rewrite_url == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
log_message (LOG_CONN, "Rewriting URL: %s -> %s", url,
|
||||
rewrite_url ? rewrite_url : "No mapping found");
|
||||
log_message (LOG_CONN, "Rewriting URL: %s -> %s", url, rewrite_url);
|
||||
|
||||
/* Store reverse path so that the magical tracking cookie can be set */
|
||||
if (config.reversemagic && reverse)
|
||||
|
Loading…
Reference in New Issue
Block a user