ok2c commented on code in PR #1543:
URL: 
https://github.com/apache/httpcomponents-core/pull/1543#discussion_r4731201075


##########
httpcore5/src/main/java/org/apache/hc/core5/http/protocol/ForwardedRequest.java:
##########
@@ -166,7 +168,8 @@ public void process(final HttpRequest request, final 
EntityDetails entity, final
         if (valueBuilder.length() > 0 && !forwardedHeaderExists) {
             valueBuilder.append(";");
         }
-        
valueBuilder.append("host=\"").append(authority.getHostName()).append("\"");
+        valueBuilder.append("host=");

Review Comment:
   @rootvector2 Can make it a bit more consistent with the rest of the code 
base? Could you please use `BasicHeaderValueFormatter#formatNameValuePair` 
method provided by `BasicHeaderValueFormatter#INSTANCE` to format `by`, `for` 
and `host` name/value pairs?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to