Use HttpResponseHeaders instead of a dictionary

This commit is contained in:
Bond_009
2019-06-14 17:14:42 +02:00
parent d405a400aa
commit 3603c64fa6
2 changed files with 26 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Http.Headers;
namespace MediaBrowser.Common.Net
{
@@ -50,11 +50,16 @@ namespace MediaBrowser.Common.Net
/// Gets or sets the headers.
/// </summary>
/// <value>The headers.</value>
public Dictionary<string, string> Headers { get; set; }
public HttpResponseHeaders Headers { get; set; }
public HttpResponseInfo()
{
Headers = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
}
public HttpResponseInfo(HttpResponseHeaders headers)
{
Headers = headers;
}
public void Dispose()