MCPcopy Index your code
hub / github.com/API-Security/APIKit / urlToOrigin

Method urlToOrigin

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

Source from the content-addressed store, hash-verified

46 }
47
48 private String urlToOrigin(URL url) {
49 int port = url.getPort();
50 if (port == -1) {
51 if ("http".equals(url.getProtocol())) {
52 port = 80;
53 } else {
54 port = 443;
55 }
56 }
57 return url.getProtocol() + "://" + url.getHost() + ":" + port;
58 }
59
60 private HashMap<String, String> parseCookie(String cookie) {
61 HashMap<String, String> result = new HashMap<>();

Callers 2

processHttpMessageMethod · 0.95
getCookieHeaderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected