pklim101 opened a new issue #1051: GET请求丢失uri部分 URL: https://github.com/apache/incubator-brpc/issues/1051 在ParallelChannel里,发送HTTP请求的时候,抓包发现uri并没有发送过去。 代码如下: brpc::Controller cntl; cntl.http_request().uri() = "www.test.com/abc?a=1" cntl.http_request().set_content_type("text/plain"); pchan->CallMethod(NULL, &cntl, &request, &response, NULL); 抓包的header部分如下: GET / HTTP/1.1 =========>这里path部分应该是:/abc而不是/ Host: www.test.com:80 Content-Type: application/json ======>这里应该是text/plain log-id: 100 Accept: */* User-Agent: brpc/1.0 curl/7.0
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
