end);
            schemeEnd -= start;
            hostStart = 7;
            portStart = 7;
            pathStart = 7;
            queryStart += delta - start;
            fragmentStart += delta - start;
            start = 0;
            end = uri.length;
          } else if (pathStart == queryStart) {
            &#47;&#47; Uri has authority and empty path. Add &quot;&#47;&quot; as path.
            if (start == 0 &amp;&amp; end == uri.length) {
              uri = uri.replaceRange(pathStart, queryStart, 