Hello,
There is two headers: HTTPRedirectHeader and HTTPStatusHeader. On of the problems
with them is a fact that sometimes you should send them both
---------------------
Status: 302 Found
Location: /some/new/place
-------------------
Otherwise apache and nginx would not redirect (only lighttpd works for me without status header).
The problem is that each one of these headers adds "\n\n" at the and and you can send them as is
So I should add Status header manually
cout<<"Status: 302 Found"<<endl;
cout<<HTTPRedirectHeader("/some/new/place");
Is there way to send both headers together?
I don't see this option in the code, all render() virtual functions send final "\n\n".
Thanks,
Artyom