File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10287,12 +10287,15 @@ TEST(UniversalClientImplTest, Ipv6LiteralAddress) {
1028710287
1028810288TEST (UniversalClientImplTest, Ipv6LiteralAddressHostDefaultPort) {
1028910289 /*
10290- When Java Servlet parses the request header host, it will split the IP and port.
10291- When using the default port (not passed by default), if there is no [] distinction,
10292- Java will use the last colon of IPv6 as the port delimiter, and Java parsing will report an error
10290+ When Java Servlet parses the request header host,
10291+ it will split the IP and port. When using the default
10292+ port (not passed by default), if there is no []
10293+ distinction, Java will use the last colon of IPv6
10294+ as the port delimiter,and Java parsing will
10295+ report an error.
1029310296 */
1029410297 httplib::Server svr;
10295- svr.Get (" /" , [&](const httplib::Request & req, httplib::Response &res) {
10298+ svr.Get (" /" , [&](const httplib::Request &req, httplib::Response &res) {
1029610299 res.status = httplib::StatusCode::OK_200;
1029710300 res.set_content (req.get_header_value (" Host" , " " ), " text/plain" );
1029810301 });
You can’t perform that action at this time.
0 commit comments