diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/tests/fastcgi.cpp | |
parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/tests/fastcgi.cpp')
-rw-r--r-- | src/tests/fastcgi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/fastcgi.cpp b/src/tests/fastcgi.cpp index a3fa675..7ca4ebc 100644 --- a/src/tests/fastcgi.cpp +++ b/src/tests/fastcgi.cpp | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
3 | * | 3 | * |
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
@@ -27,10 +27,10 @@ public: | |||
27 | } | 27 | } |
28 | 28 | ||
29 | virtual int onRequest( const StrHash &hParams, | 29 | virtual int onRequest( const StrHash &hParams, |
30 | const Bu::FString &sStdIn, Bu::Stream &sStdOut, | 30 | const Bu::String &sStdIn, Bu::Stream &sStdOut, |
31 | Bu::Stream &/*sStdErr*/ ) | 31 | Bu::Stream &/*sStdErr*/ ) |
32 | { | 32 | { |
33 | Bu::FString sOut("Content-Type: text/html\r\n\r\n"); | 33 | Bu::String sOut("Content-Type: text/html\r\n\r\n"); |
34 | sOut += "<html><body><h1>Environment:</h1><ul>"; | 34 | sOut += "<html><body><h1>Environment:</h1><ul>"; |
35 | for( StrHash::const_iterator i = hParams.begin(); i; i++ ) | 35 | for( StrHash::const_iterator i = hParams.begin(); i; i++ ) |
36 | { | 36 | { |
@@ -44,8 +44,8 @@ public: | |||
44 | sOut += "</li></ul>"; | 44 | sOut += "</li></ul>"; |
45 | sOut += "<h1>Stdin:</h1>"; | 45 | sOut += "<h1>Stdin:</h1>"; |
46 | sOut.formatAppend("%d bytes<pre>", sStdIn.getSize() ); | 46 | sOut.formatAppend("%d bytes<pre>", sStdIn.getSize() ); |
47 | Bu::FString sL, sR; | 47 | Bu::String sL, sR; |
48 | for( Bu::FString::const_iterator i = sStdIn.begin(); | 48 | for( Bu::String::const_iterator i = sStdIn.begin(); |
49 | i; i++ ) | 49 | i; i++ ) |
50 | { | 50 | { |
51 | sL.formatAppend("%02X ", | 51 | sL.formatAppend("%02X ", |