You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/10/15 03:58:54 UTC

[GitHub] [incubator-brpc] thorneliu commented on issue #1940: Invalid host in HTTP header if setting host via service_name for channel inited by list or file

thorneliu commented on issue #1940:
URL: https://github.com/apache/incubator-brpc/issues/1940#issuecomment-1279650446

   > > We could
   > > 
   > > * A: check if service name a valid host for HTTP
   > > * B: set host field by remote_side
   > > 
   > > option B would revert some changes [dab62e4](https://github.com/apache/incubator-brpc/commit/dab62e476d7dae7edd43d2c9bfa16b76d3ac4879) by @guodongxiaren
   > 
   > I think we can check if ns_url shceme is 'http' or 'https', if true, set host field by service_name
   
   hmm. looks good. I can provide a patch based on this 


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

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org