Continue with forward proxy if ReverseOnly is not true and no mapping available (#35)

allow non-reverse mappings if reverseonly is not enabled
This commit is contained in:
Stephan Leemburg authored and Michael Adam committed 2016-09-10 19:22:45 +02:00
1 parent 186bbc3efb
commit c5da1cc934
2 files changed
+11 -11

No files matched your search

+1 -7
View File
@@ -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;
}