summaryrefslogtreecommitdiffhomepage
path: root/src/reverse-proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reverse-proxy.c')
-rw-r--r--src/reverse-proxy.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/reverse-proxy.c b/src/reverse-proxy.c
index 9ca55f6..0264787 100644
--- a/src/reverse-proxy.c
+++ b/src/reverse-proxy.c
@@ -156,13 +156,7 @@ 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;
}