src/java.net.http/share/classes/jdk/internal/net/http/Http1Request.java
changeset 49944 4690a2871b44
parent 49765 ee6f7a61f3a5
child 50681 4254bed3c09d
child 56507 2294c51eae30
equal deleted inserted replaced
49943:8e1ed2a15845 49944:4690a2871b44
   198         }
   198         }
   199         if (query == null) {
   199         if (query == null) {
   200             query = "";
   200             query = "";
   201         }
   201         }
   202         if (query.equals("")) {
   202         if (query.equals("")) {
   203             return path;
   203             return Utils.encode(path);
   204         } else {
   204         } else {
   205             return path + "?" + query;
   205             return Utils.encode(path + "?" + query);
   206         }
   206         }
   207     }
   207     }
   208 
   208 
   209     private String authorityString(InetSocketAddress addr) {
   209     private String authorityString(InetSocketAddress addr) {
   210         return addr.getHostString() + ":" + addr.getPort();
   210         return addr.getHostString() + ":" + addr.getPort();