Commit bab478e5 authored by NTAuthority's avatar NTAuthority

fucking fixes

parent 5b98d04f
......@@ -60,6 +60,12 @@ namespace uhttpsharp
: this(code, "text/html; charset=utf-8", StringToStream(content), closeConnection)
{
}
public HttpResponse(HttpResponseCode code, string contentType, string content, bool closeConnection)
: this(code, contentType, StringToStream(content), closeConnection)
{
}
public HttpResponse(string contentType, Stream contentStream, bool closeConnection)
: this(HttpResponseCode.Ok, contentType, contentStream, closeConnection)
{
......
......@@ -64,7 +64,12 @@ namespace uhttpsharp
public CookiesStorage(string cookie)
{
var keyValues = cookie.Split(CookieSeparators, StringSplitOptions.RemoveEmptyEntries);
if (string.IsNullOrWhiteSpace(cookie))
{
return;
}
var keyValues = cookie.Split(CookieSeparators, StringSplitOptions.None);
_values = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
for (int i = 0; i < keyValues.Length; i += 2)
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.3" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.1" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.3" targetFramework="net45" />
</packages>
\ No newline at end of file
......@@ -37,11 +37,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.3\lib\net40-full\log4net.dll</HintPath>
<HintPath>..\..\..\packages\log4net.2.0.3\lib\net40-full\log4net.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment