AttentionZ / google-url

Automatically exported from code.google.com/p/google-url
Other
0 stars 0 forks source link

GURL::is_valid() is true, but GURL::GetOrigin().is_valid() is false #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I found this in a Chromium crash report.

"httppt: */*\r\nAccept-Encoding: gzip,deflate,sdch\r\nAccept-Language: en-
US,en;q=0.8\r\n"

GURL parses this as valid, but the GURL returned by GetOrigin() is invalid.

Original issue reported on code.google.com by willchan@chromium.org on 4 Aug 2009 at 11:04

GoogleCodeExporter commented 9 years ago
Actually, this probably isn't a bug in GURL, but rather in the chrome code that 
seems 
to think the scheme is http and therefore must have a host.

Original comment by willchan@chromium.org on 4 Aug 2009 at 11:21