pull/2473/head
Hongwei Wang 10 years ago
parent d423f3c2fd
commit 275a02c317
  1. 4
      src/core/client_config/uri_parser.c

@ -98,8 +98,8 @@ grpc_uri *grpc_uri_parse(const char *uri_text, int suppress_errors) {
if (uri_text[scheme_end + 1] == '/' && uri_text[scheme_end + 2] == '/') { if (uri_text[scheme_end + 1] == '/' && uri_text[scheme_end + 2] == '/') {
authority_begin = scheme_end + 3; authority_begin = scheme_end + 3;
for (i = authority_begin; uri_text[i] != 0; i++) { for (i = authority_begin; uri_text[i] != 0 && authority_end == -1; i++) {
if (uri_text[i] == '/' && authority_end == -1) { if (uri_text[i] == '/') {
authority_end = i; authority_end = i;
} }
if (uri_text[i] == '?') { if (uri_text[i] == '?') {

Loading…
Cancel
Save