equal
deleted
inserted
replaced
434 AccessControlContext acc = null; |
434 AccessControlContext acc = null; |
435 if (System.getSecurityManager() != null) |
435 if (System.getSecurityManager() != null) |
436 acc = AccessController.getContext(); |
436 acc = AccessController.getContext(); |
437 |
437 |
438 // Clone the, possibly untrusted, HttpRequest |
438 // Clone the, possibly untrusted, HttpRequest |
439 HttpRequestImpl requestImpl = new HttpRequestImpl(userRequest, proxySelector, acc); |
439 HttpRequestImpl requestImpl = new HttpRequestImpl(userRequest, proxySelector); |
440 if (requestImpl.method().equals("CONNECT")) |
440 if (requestImpl.method().equals("CONNECT")) |
441 throw new IllegalArgumentException("Unsupported method CONNECT"); |
441 throw new IllegalArgumentException("Unsupported method CONNECT"); |
442 |
442 |
443 long start = DEBUGELAPSED ? System.nanoTime() : 0; |
443 long start = DEBUGELAPSED ? System.nanoTime() : 0; |
444 reference(); |
444 reference(); |