Skip to content

Commit

Permalink
Allow override on HttpProtocol's method addHeadersToRequest (apache#1041
Browse files Browse the repository at this point in the history
)

Signed-off-by: Mathieu Bret <[email protected]>
  • Loading branch information
Mikwiss authored Feb 14, 2023
1 parent 208735a commit c021ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private void addCookiesToRequest(HttpRequestBase request, Metadata md) {
}
}

private void addHeadersToRequest(HttpRequestBase request, Metadata md) {
protected void addHeadersToRequest(HttpRequestBase request, Metadata md) {
String[] headerStrings = md.getValues(SET_HEADER_BY_REQUEST, protocolMDprefix);
if ((headerStrings != null) && (headerStrings.length > 0)) {
for (String hs : headerStrings) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private void addCookiesToRequest(Builder rb, String url, Metadata md) {
}
}

private void addHeadersToRequest(Builder rb, Metadata md) {
protected void addHeadersToRequest(Builder rb, Metadata md) {
final String[] headerStrings = md.getValues(SET_HEADER_BY_REQUEST, protocolMDprefix);

if (headerStrings != null && headerStrings.length > 0) {
Expand Down

0 comments on commit c021ca8

Please sign in to comment.