Re: [Cppcms-users] How to set default response().out() stream precision?
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-06-18 08:54:56
|
----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: cpp...@li... > Cc: > Sent: Monday, June 18, 2012 10:29 AM > Subject: Re: [Cppcms-users] How to set default response().out() stream precision? > > Looking at the implementation of http_response::out() it writes out > headers so no wonder set_redirect_header is broken() if I do > out().precision(9). > > Would it be possible to expose the ostream without writing headers? > No, the access to out() flushes the headers by design as the data stream goes after the headers so the headers should be written. See: http://cppcms.com/cppcms_ref/latest/classcppcms_1_1http_1_1response.html#a39e48c676a3f2c79b26d60b8d455658c Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |