]> git.mxchange.org Git - simgear.git/commitdiff
Fix a release build issue, meaning of IDLE state was overloaded, add an explicit...
authorJames Turner <zakalawe@mac.com>
Wed, 24 Aug 2011 09:30:27 +0000 (02:30 -0700)
committerJames Turner <zakalawe@mac.com>
Wed, 24 Aug 2011 09:30:27 +0000 (02:30 -0700)
simgear/io/HTTPClient.cxx

index 96ef25bda430d17338eb2d7290910d765b4789ea..fb1b812faaeb4d91dcbb5c9a4e0b4f1cfa0c33e5 100644 (file)
@@ -100,7 +100,7 @@ public:
         }
                 
         activeRequest = r;
-        state = STATE_IDLE;
+        state = STATE_SENT_REQUEST;
         bodyTransferSize = -1;
         chunkedTransfer = false;
         setTerminator("\r\n");
@@ -146,7 +146,7 @@ public:
     virtual void foundTerminator(void)
     {
         switch (state) {
-        case STATE_IDLE:
+        case STATE_SENT_REQUEST:
             activeRequest->responseStart(buffer);
             state = STATE_GETTING_HEADERS;
             buffer.clear();
@@ -170,6 +170,7 @@ public:
             state = STATE_GETTING_CHUNKED;
             break;
             
+
         case STATE_GETTING_TRAILER:
             processTrailer();
             buffer.clear();
@@ -354,6 +355,7 @@ private:
     
     enum ConnectionState {
         STATE_IDLE = 0,
+        STATE_SENT_REQUEST,
         STATE_GETTING_HEADERS,
         STATE_GETTING_BODY,
         STATE_GETTING_CHUNKED,