Hi,
You're right, I overlooked the case insensitive part and will remedy that
ASAP. Regarding international hostnames, they are as far as I can tell
actually ecoded in plain ASCII using punycode and a special prefix. It's up
to each application to convert such names back into unicode for display
purposes.
On Feb 7, 2014 5:23 PM, "Phil Haack" <notifications@github.com> wrote:

> In RestSharp/RestRequest.cs:
>
> > @@ -356,6 +357,10 @@ public IRestRequest AddParameter (string name, object value, ParameterType type)
> >  		/// <returns></returns>
> >  		public IRestRequest AddHeader (string name, string value)
> >  		{
> > +			if (name == "Host" && (value.Length > 255 || !Regex.IsMatch(value, @"^\w[a-z0-9\-]{0,62}(\.\w[a-z0-9\-]{0,62})*(\:\d+)?$")))
>
> Shouldn't this use a case insensitive regex? Also, do header values not
> allow international characters?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/restsharp/RestSharp/pull/505/files#r9544514>
> .
>