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,12 +369,15 @@ 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;
} }
safefree (url); /* if not reverse only and a mapping was found.. */
url = reverse_url; if(reverse_url) {
safefree (url);
url = reverse_url;
}
} }
#endif #endif