diff options
author | topfs2 <topfs2@svn> | 2010-10-13 00:53:07 +0000 |
---|---|---|
committer | topfs2 <topfs2@svn> | 2010-10-13 00:53:07 +0000 |
commit | 9d46f427cb4f1011d52b363333327060f3b75e22 (patch) | |
tree | d7a81efd347c37cd1410ea2d02dd1709df9fc9f4 | |
parent | 89ed1e161adab77187d7863eeda6352ac8ba8133 (diff) |
Fix - XBMC Webserver should allow POST of httpapi to be backwards compatible. Fix Webserver so its compilable without httpapi defined.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@34727 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/utils/WebServer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/utils/WebServer.cpp b/xbmc/utils/WebServer.cpp index 22a029d1ed..08383f6603 100644 --- a/xbmc/utils/WebServer.cpp +++ b/xbmc/utils/WebServer.cpp @@ -133,8 +133,10 @@ int CWebServer::AnswerToConnection(void *cls, struct MHD_Connection *connection, } #endif - if (methodType == GET && strURL.Left(18).Equals("/xbmcCmds/xbmcHttp")) +#ifdef HAS_HTTPAPI + if ((methodType == GET || methodType == POST) && strURL.Left(18).Equals("/xbmcCmds/xbmcHttp")) return HttpApi(connection); +#endif if (strURL.Left(4).Equals("/vfs")) { |