Commit a1d3d479 authored by KevinRMCD's avatar KevinRMCD Committed by GitHub

Update SessionEventArgs.cs

parent d1dd9545
...@@ -405,7 +405,8 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -405,7 +405,8 @@ namespace Titanium.Web.Proxy.EventArguments
/// <param name="headers"></param> /// <param name="headers"></param>
public async Task Ok(byte[] result, Dictionary<string, HttpHeader> headers) public async Task Ok(byte[] result, Dictionary<string, HttpHeader> headers)
{ {
var response = new OkResponse(); var response = new OkResponse();           
if (headers != null && headers.Count > 0) if (headers != null && headers.Count > 0)
{ {
response.ResponseHeaders = headers; response.ResponseHeaders = headers;
...@@ -420,7 +421,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -420,7 +421,7 @@ namespace Titanium.Web.Proxy.EventArguments
public async Task GenericResponse(string html, HttpStatusCode status) public async Task GenericResponse(string html, HttpStatusCode status)
        {         {
            await GenericResponse(html, null, status);             await GenericResponse(html, null, status);
        }         }
        public async Task GenericResponse(string html, Dictionary<string, HttpHeader> headers, HttpStatusCode status)         public async Task GenericResponse(string html, Dictionary<string, HttpHeader> headers, HttpStatusCode status)
...@@ -430,7 +431,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -430,7 +431,7 @@ namespace Titanium.Web.Proxy.EventArguments
                throw new Exception("You cannot call this function after request is made to server.");                 throw new Exception("You cannot call this function after request is made to server.");
            }             }
               
            if (html == null)             if (html == null)
            {             {
                html = string.Empty;                 html = string.Empty;
            }             }
......
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