diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2007-03-07 01:22:44 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-07 01:22:44 +0000 |
| commit | 8cba0ee929112a125eb41228f667e8bdd0224f58 (patch) | |
| tree | a9d1a1575f82ae8c9b03c9ef5eea7480ba3733bd /src | |
| parent | fe60ebeb43f32d17c458366903fdf4e773b15b32 (diff) | |
| download | libbu++-8cba0ee929112a125eb41228f667e8bdd0224f58.tar.gz libbu++-8cba0ee929112a125eb41228f667e8bdd0224f58.tar.bz2 libbu++-8cba0ee929112a125eb41228f667e8bdd0224f58.tar.xz libbu++-8cba0ee929112a125eb41228f667e8bdd0224f58.zip | |
david - yep, forgot to commit
Diffstat (limited to '')
| -rw-r--r-- | src/http.cpp | 8 | ||||
| -rw-r--r-- | src/http.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/http.cpp b/src/http.cpp index 92bd89c..df7dafe 100644 --- a/src/http.cpp +++ b/src/http.cpp | |||
| @@ -77,9 +77,10 @@ bool Http::parseRequest() | |||
| 77 | case parseHeader: | 77 | case parseHeader: |
| 78 | { | 78 | { |
| 79 | int nLen = pCon->scanInputFor( CR ); | 79 | int nLen = pCon->scanInputFor( CR ); |
| 80 | //printf("nLen = %d: :::%s:::\n", nLen, pCon->getInput() ); | ||
| 80 | if( nLen == -1 ) | 81 | if( nLen == -1 ) |
| 81 | { | 82 | { |
| 82 | return false; | 83 | pCon->readInput( 1, 0); |
| 83 | } | 84 | } |
| 84 | else if( nLen == 0 ) | 85 | else if( nLen == 0 ) |
| 85 | { | 86 | { |
| @@ -369,3 +370,8 @@ bool Http::checkRequestVer() | |||
| 369 | return false; | 370 | return false; |
| 370 | } | 371 | } |
| 371 | 372 | ||
| 373 | const char *Http::getHeader( const char *lpStr ) | ||
| 374 | { | ||
| 375 | return (const char *)hReqHeader[lpStr]; | ||
| 376 | } | ||
| 377 | |||
| @@ -241,6 +241,8 @@ public: | |||
| 241 | statusHTTPVersionNotSupported = 505 | 241 | statusHTTPVersionNotSupported = 505 |
| 242 | }; | 242 | }; |
| 243 | 243 | ||
| 244 | const char *getHeader( const char *lpStr ); | ||
| 245 | |||
| 244 | private: | 246 | private: |
| 245 | Connection *pCon; | 247 | Connection *pCon; |
| 246 | unsigned char nParseState; | 248 | unsigned char nParseState; |
