Bug 18494

Summary: System.Net.Http.Headers.RangeHeaderValue.Parse throws FormatException
Product: [Mono] Class Libraries Reporter: Fabio Iotti <fabiogiopla>
Component: GeneralAssignee: Marek Safar <masafa>
Status: RESOLVED FIXED    
Severity: normal CC: masafa, mono-bugs+mono
Priority: ---    
Version: 3.0.x   
Target Milestone: Untriaged   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:

Description Fabio Iotti 2014-03-20 12:05:27 UTC
Tested on Mono 3.0.6

Test:
System.Net.Http.Headers.RangeHeaderValue.Parse("bytes=0-")

Expected:
"bytes=0-"

Actual:
System.FormatException: bytes=0-




Adding a space before the score sign makes the parser work well:
System.Net.Http.Headers.RangeHeaderValue.Parse("bytes=0 -")
Comment 1 Marek Safar 2014-03-20 13:58:00 UTC
Fixed in master