diff options
author | Jesse Wilson <jwilson@squareup.com> | 2012-09-21 14:58:29 -0400 |
---|---|---|
committer | Jesse Wilson <jwilson@squareup.com> | 2012-09-21 15:07:23 -0400 |
commit | dc24b1b274a6110a56993849c8e93033e0c2f1ff (patch) | |
tree | f025583e4b2444122b422be53625c9d41e1d2bc9 /annotations/generate_annotated_java_files.py | |
parent | d1e99bafe0047460e82b8018dae8fc986644791d (diff) |
Add tests for underscores in URLs.
We're between a rock and a hard place on this. The RFCs say
that underscores aren't permitted in URLs. But browsers have
historically permitted them, and so there are websites that
depend upon them.
Attempting to support the de-facto standard rather than the
spec is difficult because support isn't universal. Mail servers
don't handle them. Internet Explorer loses cookies on them.
Further complicating things is that we can't easily support
underscores in hostnames in HttpURLConnection without also
adding support for that to java.net.URI. This would cause
awkward behavior in class that can be used for its strict
validation.
I'm recommending we stay spec-compliant. If its a major
problem for anyone, they can fix their servers.
Change-Id: I5135e0de20e11275e2459a67ec9e7c0d07b8a35b
http://code.google.com/p/android/issues/detail?id=37577
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions