/TCPproxy/trunk/Network.cs |
---|
1932,7 → 1932,7 |
HttpHeader contentType = half.GetHeader("content-type"); |
if(contentType != null) |
{ |
Match match = Regex.Match(contentType.Values[0], @"^\s*(\S+)/(\S+)\s*($|;\s*(charset=""?(\S+)""?)?)"); |
Match match = Regex.Match(contentType.Values[0], @"^\s*([!#$%&'*+.0-9A-Z^_a-z|~-]+)/([!#$%&'*+.0-9A-Z^_a-z|~-]+)\s*($|;\s*(charset=""?(\S+)""?)?)"); |
if(match.Success) |
{ |
half.ContentType = match.Groups[1].Captures[0].Value; |