summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-11 21:53:35 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-11 21:53:35 +0100
commit938cbd03370f573f1525b2a266fa4f5dfd6bf659 (patch)
tree409e453576a14903a2071e6a39c521cb939f15b8 /include/git2/diff.h
parentff7652c150c5a9cd2e93045c7fe791fbb2d2dbc7 (diff)
downloadlibgit2-938cbd03370f573f1525b2a266fa4f5dfd6bf659.tar.gz
net: handle urls with a colon after host but no port
Core git copes with URLs that have a colon after the port, but no actual numeric value. eg `http://example.com:/foo.git` or `http://example.com:`. That's horrible, but RFC 3986 says: > URI producers and normalizers should omit the port component and its > ":" delimiter if port is empty or if its value would be the same as > that of the scheme's default. Which indicates that they may and therefore we must accept it. Test that we can handle URLs with a colon but no following port number.
Diffstat (limited to 'include/git2/diff.h')
0 files changed, 0 insertions, 0 deletions