Skip to content

Conversation

lifw555
Copy link

@lifw555 lifw555 commented Sep 12, 2025

No description provided.

fix client ipv6 bug
add test
@yhirose
Copy link
Owner

yhirose commented Sep 12, 2025

@lifw555 thanks for the pull request. Could you please take a look at broken unit tests?

fix ipv6 bug
@yhirose
Copy link
Owner

yhirose commented Sep 12, 2025

@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.)

@lifw555
Copy link
Author

lifw555 commented Sep 15, 2025

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
@lifw555 lifw555 changed the title Fix client use i pv6 address with default port, host was not properly wrapped by [] Fix client use i pv6 address with default port, host was not properly wrapped by [], java servlet parsing header host will report an error Sep 29, 2025
@lifw555
Copy link
Author

lifw555 commented Sep 29, 2025

This fixed should be correct

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.

2 participants