title: Redirect http server request in Dart, but uri.host is blank
body: <p>I've got:</p>
  
  <pre><code>server.listen((HttpRequest request) {
        print(request.uri.toString());
        if (request.uri.host == "woven.app") {
          request.response.redirect(new Uri(scheme: 'http', host: 'woven.co',
            path: request.uri.path, fragment: request.uri.fragment));
        }
        ...
  </code></pre>
  
  <p>But line 2 returns blank. According to the notes for <code>request.uri</code>:</p>
  
  <pre><code>   * Returns the host part of the authority component.
     *
     * Returns the empty string if there is no authority component and
     * hence no host.
  </code></pre>
  
  <p>UPDATE: This is the case locally and on server, tested with Chrome.</p>