Closed
Description
Question: The protocol of an url http://a.b.c
should be http
or http:
?
Observation: Given an url http://a.b.c
, the following table shows the different parsing results of protocol
among Node, Python and Java:
Node | Python | Java |
---|---|---|
http: |
http |
http |
Note:
Current parsing logic: https://github.com/nodejs/node/blob/master/lib/url.js#L39
An example:
import URL from 'url';
let parsedUrl = URL.parse('http://a.b.c')
Url {
protocol: 'http:',
...
}