From 411f240da34bab53cd18aa8b7ba09834ede49b1c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 6 Oct 2011 02:58:23 +0000 Subject: Fixed the formatting of unsigned chars in the formatter, and added a function to actually stop the fastcgi main loop. --- src/fastcgi.h | 2 ++ src/formatter.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fastcgi.h b/src/fastcgi.h index 1a3d02e..d290c40 100644 --- a/src/fastcgi.h +++ b/src/fastcgi.h @@ -102,6 +102,8 @@ namespace Bu virtual void run(); + void stopRunning() { bRunning = false; } + virtual void onInit() { }; virtual int onRequest( const StrHash &hParams, const Bu::String &sStdIn, Bu::Stream &sStdOut, diff --git a/src/formatter.cpp b/src/formatter.cpp index 61a059a..f275d71 100644 --- a/src/formatter.cpp +++ b/src/formatter.cpp @@ -364,7 +364,7 @@ Bu::Formatter &Bu::operator<<( Bu::Formatter &f, char c ) Bu::Formatter &Bu::operator<<( Bu::Formatter &f, unsigned char c ) { - f.ifmt( c ); + f.ufmt( c ); //f.write( (char *)&c, 1 ); return f; } -- cgit v1.2.3