You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should refactor this package to prevent possible bugs.
We need to refactor TCP, HTTP, HTTPS and WS funcs.
For ex. HTTPS used in the network c publish command.
Users may provide a url with http, in this case this func will add the https prefix anyway and broke the url.
To fix this, TCP, HTTP, HTTPS and WS should parse the url with url pkg
HTTPS: check if there is a schema, if schema is http then do nothing (no need to force to convert it to -s-), if schema is empty or something else then set https as schema.
HTTP: check if there is a schema, if schema is http then do nothing, if schema is empty or something else then set http as schema.
TCP: check if there is a schema, if schema is tcp then do nothing, if schema is empty or something else then set tcp as schema.
WS: check if there is a schema, if schema is ws then do nothing, if schema is empty or something else then set ws as schema.
The text was updated successfully, but these errors were encountered:
We should refactor this package to prevent possible bugs.
We need to refactor TCP, HTTP, HTTPS and WS funcs.
For ex. HTTPS used in the
network c publish
command.Users may provide a url with
http
, in this case this func will add thehttps
prefix anyway and broke the url.To fix this, TCP, HTTP, HTTPS and WS should parse the url with
url
pkghttp
then do nothing (no need to force to convert it to -s-), if schema is empty or something else then sethttps
as schema.http
then do nothing, if schema is empty or something else then sethttp
as schema.tcp
then do nothing, if schema is empty or something else then settcp
as schema.ws
then do nothing, if schema is empty or something else then setws
as schema.The text was updated successfully, but these errors were encountered: