allow non-reverse mappings if reverseonly is not enabled
This commit is contained in:
parent
186bbc3efb
commit
9930e7cd82
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user