diff options
Diffstat (limited to 'src/protocolhttp.cpp')
-rw-r--r-- | src/protocolhttp.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/protocolhttp.cpp b/src/protocolhttp.cpp index 6f2ae68..d18d73d 100644 --- a/src/protocolhttp.cpp +++ b/src/protocolhttp.cpp | |||
@@ -71,8 +71,15 @@ void Bu::ProtocolHttp::onNewData( Bu::Client *pClient ) | |||
71 | 71 | ||
72 | case 3: | 72 | case 3: |
73 | SDB( 3 ); | 73 | SDB( 3 ); |
74 | pClient->disconnect(); | 74 | if( iState != ttNewline ) |
75 | return; | 75 | { |
76 | pClient->disconnect(); | ||
77 | return; | ||
78 | } | ||
79 | iState = 4; | ||
80 | break; | ||
81 | |||
82 | case 4: | ||
76 | break; | 83 | break; |
77 | } | 84 | } |
78 | } | 85 | } |