• Jacob Baskin's avatar
    URL should have an empty Scheme if there is an invalid character (i.e. · 536c2aa6
    Jacob Baskin authored
    not [a-zA-Z0-9+-.]) before there is a ":".
    
    This is particularly helpful in the erroneous-but-relatively-common
    case of relative URLs containing an unescaped colon in the query
    string--see the added test for an example.
    
    R=rsc
    APPROVED=rsc
    DELTA=15  (15 added, 0 deleted, 0 changed)
    OCL=30354
    CL=30356
    536c2aa6
url.go 7.3 KB