-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix client use i pv6 address with default port, host was not properly wrapped by [], java servlet parsing header host will report an error #2237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
fix client ipv6 bug
add test
@lifw555 thanks for the pull request. Could you please take a look at broken unit tests? |
fix ipv6 bug
@lifw555 I added comments. Those tests shouldn't be changed, since cpp-httplib accepts IPv6 addresses that are not fully qualified. (https://en.wikipedia.org/wiki/IPv6_address) So could you please revert the changes and update httplib.h so that all the existing tests pass as they are? (In other words, the current change in httplib.h isn't sufficient and introduces a breaking change that may cause problems for existing users' code.) |
sorry,I will restore the code I modified back to its original state。 |
…P and port. When using the default port (not passed by default), if there is no [] distinction, Java will use the last colon of IPv6 as the port delimiter, and Java parsing will report an error
This fixed should be correct |
No description provided.