Added a user api handler, and improved portable ApiClient

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-07 21:33:49 -04:00
parent 23ea228079
commit c7b305ee2e
7 changed files with 446 additions and 11 deletions

View File

@@ -407,7 +407,7 @@ namespace MediaBrowser.Common.Net.Handlers
if (request.HasEntityBody)
{
if (request.ContentType.Equals("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase))
if (request.ContentType.IndexOf("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) != -1)
{
using (Stream requestBody = request.InputStream)
{