Commit 0cc2635c authored by titanium007's avatar titanium007

Allow empty header value

parent b8fb75d6
...@@ -12,7 +12,7 @@ namespace Titanium.Web.Proxy.Models ...@@ -12,7 +12,7 @@ namespace Titanium.Web.Proxy.Models
public HttpHeader(string name, string value) 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.Name = name.Trim();
this.Value = value.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