Skip to content

Conversation

@dev-itsheng
Copy link

In HTTP request, if the port is default (http -> 80, https -> 443), the port of url can be optional.

And in the source code, it also handles scenarios where port is undefined (or not defined).

So I think in this scene the config of port shouldn't be written, and I omit the port property in my own project and it works fine (with the TypeScript error of course).

I changed the definition of package and make it optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant