MCPcopy Index your code
hub / github.com/XF-FS/APIKit / urlToOrigin

Method urlToOrigin

src/main/java/burp/CookieManager.java:38–44  ·  view source on GitHub ↗
(URL url)

Source from the content-addressed store, hash-verified

36 }
37
38 private String urlToOrigin(URL url) {
39 int port = url.getPort();
40 if (port == -1) {
41 port = "http".equals(url.getProtocol()) ? 80 : 443;
42 }
43 return url.getProtocol() + "://" + url.getHost() + ":" + port;
44 }
45
46 private HashMap<String, String> parseCookie(String cookie) {
47 String[] keyValuePairs;

Callers 2

processHttpMessageMethod · 0.95
getCookieHeaderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected