diff options
author | Stephan Leemburg <stephan@it-functions.nl> | 2016-09-10 19:22:45 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-09-10 19:22:45 +0200 |
commit | c5da1cc934d5c75b109e2cc81398cb6cb4b37d92 (patch) | |
tree | f9ba747b06694a1d4c1ddd2aa134c2195136ad06 /src/reverse-proxy.c | |
parent | 186bbc3efb4b47caac0b5e14465c97918c99e442 (diff) |
Continue with forward proxy if ReverseOnly is not true and no mapping available (#35)
allow non-reverse mappings if reverseonly is not enabled
Diffstat (limited to 'src/reverse-proxy.c')
-rw-r--r-- | src/reverse-proxy.c | 8 |
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; } |