Skip to content

Commit

Permalink
Fix - XBMC Webserver should allow POST of httpapi to be backwards com…
Browse files Browse the repository at this point in the history
…patible. Fix Webserver so its compilable without httpapi defined.

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@34728 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
topfs2 committed Oct 13, 2010
1 parent 030e84b commit ac34520
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/utils/WebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
{
Expand Down

0 comments on commit ac34520

Please sign in to comment.