allow non-reverse mappings if reverseonly is not enabled

This commit is contained in:
Stephan Leemburg 2016-09-07 16:52:13 +02:00
parent 186bbc3efb
commit 9930e7cd82

View File

@ -369,13 +369,16 @@ BAD_REQUEST_ERROR:
reverse_url = reverse_rewrite_url (connptr, hashofheaders, url); reverse_url = reverse_rewrite_url (connptr, hashofheaders, url);
if (!reverse_url) { if (!reverse_url && config.reverseonly) {
goto fail; goto fail;
} }
/* if not reverse only and a mapping was found.. */
if(reverse_url) {
safefree (url); safefree (url);
url = reverse_url; url = reverse_url;
} }
}
#endif #endif
if (strncasecmp (url, "http://", 7) == 0 if (strncasecmp (url, "http://", 7) == 0