mirror of
https://github.com/ZuneDev/ZuneNetApi.git
synced 2026-07-27 13:13:20 -07:00
19 lines
565 B
C#
19 lines
565 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.Formatters;
|
|
|
|
namespace Zune.Net
|
|
{
|
|
// so, zune is kinda dumb, and will often send XML data as application/x-www-form-urlencoded.
|
|
// this input formatter is designed to handle that.
|
|
public class ZestInputFormatter : XmlSerializerInputFormatter
|
|
{
|
|
public ZestInputFormatter(MvcOptions options) : base(options)
|
|
{
|
|
SupportedMediaTypes.Add("application/x-www-form-urlencoded");
|
|
}
|
|
}
|
|
}
|