Преглед на файлове

processLine doesn't override base virtual function

The processLine definition differs from the base TCPObject class causing the function to never be called. This causes HTTPObject to not function properly, it calls back into the Torque Script with the HTTP headers when it should only be returning the content.
Scott Przybylski преди 12 години
родител
ревизия
678ea8211b
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      Engine/source/app/net/httpObject.cpp
  2. 1 1
      Engine/source/app/net/httpObject.h

+ 1 - 1
Engine/source/app/net/httpObject.cpp

@@ -298,7 +298,7 @@ void HTTPObject::onDisconnect()
    Parent::onDisconnect();
 }
 
-bool HTTPObject::processLine(U8 *line)
+bool HTTPObject::processLine(UTF8 *line)
 {
    if(mParseState == ParsingStatusLine)
    {

+ 1 - 1
Engine/source/app/net/httpObject.h

@@ -72,7 +72,7 @@ public:
    virtual void onConnected();
    virtual void onConnectFailed();
    virtual void onDisconnect();
-   bool processLine(U8 *line);
+   bool processLine(UTF8 *line);
 
    DECLARE_CONOBJECT(HTTPObject);
 };