winlin

fix bug of resolve vhost, must strip then get from config.

@@ -122,6 +122,7 @@ int SrsRequest::discovery_app() @@ -122,6 +122,7 @@ int SrsRequest::discovery_app()
122 122
123 app = url; 123 app = url;
124 srs_vhost_resolve(vhost, app); 124 srs_vhost_resolve(vhost, app);
  125 + strip();
125 126
126 // resolve the vhost from config 127 // resolve the vhost from config
127 SrsConfDirective* parsed_vhost = config->get_vhost(vhost); 128 SrsConfDirective* parsed_vhost = config->get_vhost(vhost);