Re: [Cppcms-users] out() << timezone & redirecting
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-03-24 15:57:35
|
The problem is once you request output stream the headers are written and thus you can't set redirect headers. You need to provide headers first (set redirect header or so) and then request output stream Requesting output stream triggers many things including headers write and saving session values. So instead of Use response().set_redirect_header( ... ) response().out() << booster::locale::as::time_zone( tz ); Artyom > >From: Pavel Kropitz <un...@fu...> >To: cpp...@li... >Sent: Thu, March 24, 2011 5:47:45 PM >Subject: [Cppcms-users] out() << timezone & redirecting > > >hello Artyom, > > >in my app i have overloaded main function where i catch db exceptions >incompatible with life and set up several things. one of them is timezone> > > >response().out() << booster::locale::as::time_zone( tz ); > > >but that causes setting ostream_requested_ & makes redirecting > > >response().set_redirect_header( ... ) > > >impossible. is there a better way how to set timezone for each response >separately or way how to hack it? > > >pavel. |