Commit 524b6497 authored by justcoding121's avatar justcoding121 Committed by justcoding121

Allow empty header value

parent 738a8b33
......@@ -12,7 +12,7 @@ namespace Titanium.Web.Proxy.Models
public HttpHeader(string name, string value)
{
if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(value)) throw new Exception("Name or value cannot be null");
if (string.IsNullOrEmpty(name)) throw new Exception("Name cannot be null");
this.Name = name.Trim();
this.Value = value.Trim();
......
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