woshiren

Results 8 comments of woshiren

新的nlohmann::json库的json类型定义与hv当前使用的有冲突,如果程序有一部分引入了json库,另一部分使用hv时会出现链接错误的问题 具体来说是新版的json类型模板参数最后多了一个`class CustomBaseClass = void`,导致符号不一致

I meet the same problem. have u solved it?

I tried unit testing but was unable to reproduce the bug. When I attempted to test with Python and other languages, I did not encounter the same issue either. It...

``` GET https://localhost:8080/username Error: read ECONNRESET Request Headers Content-Type: application/json Accept: */* Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlkIjoiNzRjNzQ4ZGUtMjlkYy00ZjIxLTkzNzUtMTVmMjc3N2JhMjdiIn0sImV4cCI6MTcxNDQ2NzA4NiwiaWF0IjoxNzE0NDYzNDg2LCJpc3MiOiJ3b3NoaXJlbiIsIm5iZiI6MTcxNDQ2MzQ4Nn0.fykvd3AVKYLE0PqGQ0h5owIXD-OYTkllKqqK9TyDs7c User-Agent: PostmanRuntime/7.37.3 Host: localhost:8080 Accept-Encoding: gzip, deflate, br Connection: keep-alive ``` When Postman get an...

If I remove the "Connection: keep-alive" from the header, this problem will disappear. I think that‘s the problem

> I also encountered a similar problem. Removing header Connection: keep-alive can fix the problem. Does that mean removing this header from the postman side? Yes, just remove the header...

@yhirose I try the test TEST(KeepAliveTest, SSLClientReconnection) on my machine. The program did not pass the test

``` [ctest] Test project D:/cpp-httplib/build [ctest] Start 219: KeepAliveTest.SSLClientReconnection [ctest] 1/1 Test #219: KeepAliveTest.SSLClientReconnection ...***Failed 2.12 sec [ctest] Running main() from D:/cpp-httplib/build/_deps/gtest-src/googletest/src/gtest_main.cc [ctest] Note: Google Test filter = KeepAliveTest.SSLClientReconnection [ctest]...