mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-20 14:40:01 +00:00
update service creation
This commit is contained in:
parent
e0c1d740a3
commit
2084678266
10 changed files with 78 additions and 69 deletions
|
|
@ -246,13 +246,12 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
|
|||
set
|
||||
{
|
||||
this.responseContentType = value;
|
||||
HasExplicitResponseContentType = true;
|
||||
}
|
||||
}
|
||||
|
||||
public const string FormUrlEncoded = "application/x-www-form-urlencoded";
|
||||
public const string MultiPartFormData = "multipart/form-data";
|
||||
private static string GetResponseContentType(IRequest httpReq)
|
||||
public static string GetResponseContentType(IRequest httpReq)
|
||||
{
|
||||
var specifiedContentType = GetQueryStringContentType(httpReq);
|
||||
if (!string.IsNullOrEmpty(specifiedContentType)) return specifiedContentType;
|
||||
|
|
@ -360,8 +359,6 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
|
|||
: strVal.Substring(0, pos);
|
||||
}
|
||||
|
||||
public bool HasExplicitResponseContentType { get; private set; }
|
||||
|
||||
public static string HandlerFactoryPath;
|
||||
|
||||
private string pathInfo;
|
||||
|
|
@ -504,13 +501,6 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
|
|||
get { return HttpMethod; }
|
||||
}
|
||||
|
||||
public string Param(string name)
|
||||
{
|
||||
return Headers[name]
|
||||
?? QueryString[name]
|
||||
?? FormData[name];
|
||||
}
|
||||
|
||||
public string ContentType
|
||||
{
|
||||
get { return request.ContentType; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue