From 678ea8211bfac8f3295880443afbc603fb977e55 Mon Sep 17 00:00:00 2001 From: Scott Przybylski Date: Sun, 11 Aug 2013 23:03:48 -0700 Subject: [PATCH] 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. --- Engine/source/app/net/httpObject.cpp | 2 +- Engine/source/app/net/httpObject.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/app/net/httpObject.cpp b/Engine/source/app/net/httpObject.cpp index c75faed8e..d521d5000 100644 --- a/Engine/source/app/net/httpObject.cpp +++ b/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) { diff --git a/Engine/source/app/net/httpObject.h b/Engine/source/app/net/httpObject.h index 76647401a..ac12690aa 100644 --- a/Engine/source/app/net/httpObject.h +++ b/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); };