diff --git a/core/src/main/java/com/predic8/membrane/core/http/HeaderField.java b/core/src/main/java/com/predic8/membrane/core/http/HeaderField.java index 14e4c47e7..6b1d4aa82 100644 --- a/core/src/main/java/com/predic8/membrane/core/http/HeaderField.java +++ b/core/src/main/java/com/predic8/membrane/core/http/HeaderField.java @@ -45,9 +45,10 @@ public HeaderField(String headerName,String value) { } public HeaderField(HeaderField element) { - headerName = new HeaderName(element.headerName); + headerName = element.headerName; value = element.value; } + public String getValue() { return value; } diff --git a/core/src/main/java/com/predic8/membrane/core/http/HeaderName.java b/core/src/main/java/com/predic8/membrane/core/http/HeaderName.java index aa8e8ccc5..33f5eb286 100644 --- a/core/src/main/java/com/predic8/membrane/core/http/HeaderName.java +++ b/core/src/main/java/com/predic8/membrane/core/http/HeaderName.java @@ -29,10 +29,6 @@ public HeaderName(String name) { this.name = name; } - public HeaderName(HeaderName hn) { - this.name = hn.name; - } - @Override public boolean equals(Object obj) { return (this == obj) || (obj instanceof HeaderName hn) && (name.equalsIgnoreCase((hn.name)));