diff options
Diffstat (limited to 'src/protocolhttp.cpp')
-rw-r--r-- | src/protocolhttp.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/protocolhttp.cpp b/src/protocolhttp.cpp index 2a7fbdf..eaee9d0 100644 --- a/src/protocolhttp.cpp +++ b/src/protocolhttp.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. |
@@ -51,7 +51,7 @@ void Bu::ProtocolHttp::onNewData( Bu::Client *pClient ) | |||
51 | 51 | ||
52 | for(;;) | 52 | for(;;) |
53 | { | 53 | { |
54 | Bu::FString sToken; | 54 | Bu::String sToken; |
55 | TokenType tt = getToken( sToken ); | 55 | TokenType tt = getToken( sToken ); |
56 | 56 | ||
57 | if( tt == ttOutOfData ) | 57 | if( tt == ttOutOfData ) |
@@ -148,7 +148,7 @@ void Bu::ProtocolHttp::onNewData( Bu::Client *pClient ) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | Bu::ProtocolHttp::TokenType Bu::ProtocolHttp::getToken( Bu::FString &line ) | 151 | Bu::ProtocolHttp::TokenType Bu::ProtocolHttp::getToken( Bu::String &line ) |
152 | { | 152 | { |
153 | char s; | 153 | char s; |
154 | int jmax = pClient->getInputSize(); | 154 | int jmax = pClient->getInputSize(); |
@@ -330,7 +330,7 @@ Bu::ProtocolHttp::Response::Response( int iCode ) : | |||
330 | } | 330 | } |
331 | } | 331 | } |
332 | 332 | ||
333 | Bu::ProtocolHttp::Response::Response( int iCode, const Bu::FString &sReason ) : | 333 | Bu::ProtocolHttp::Response::Response( int iCode, const Bu::String &sReason ) : |
334 | iCode( iCode ), | 334 | iCode( iCode ), |
335 | sReason( sReason ) | 335 | sReason( sReason ) |
336 | { | 336 | { |
@@ -341,12 +341,12 @@ Bu::ProtocolHttp::Response::~Response() | |||
341 | } | 341 | } |
342 | 342 | ||
343 | void Bu::ProtocolHttp::Response::setHeader( | 343 | void Bu::ProtocolHttp::Response::setHeader( |
344 | const Bu::FString &sKey, const Bu::FString &sVal ) | 344 | const Bu::String &sKey, const Bu::String &sVal ) |
345 | { | 345 | { |
346 | hHeaders.insert( sKey, sVal ); | 346 | hHeaders.insert( sKey, sVal ); |
347 | } | 347 | } |
348 | 348 | ||
349 | void Bu::ProtocolHttp::Response::setContent( const Bu::FString &sCont ) | 349 | void Bu::ProtocolHttp::Response::setContent( const Bu::String &sCont ) |
350 | { | 350 | { |
351 | sContent = sCont; | 351 | sContent = sCont; |
352 | } | 352 | } |