Skip to content

Commit 1560780

Browse files
authored
Merge pull request #378 from dekobon/load-balancer-ip-injection
Adds a synthetic load balancer IP header to response headers.
2 parents 5b4a2e0 + 10f4765 commit 1560780

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

java-manta-client-unshaded/src/main/java/com/joyent/manta/http/MantaHttpRequestExecutor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ protected HttpResponse doReceiveResponse(
108108
throw mioe;
109109
}
110110

111+
if (!response.containsHeader("x-load-balancer")) {
112+
response.setHeader("x-load-balancer", extractLoadBalancerAddress(conn));
113+
}
114+
111115
return response;
112116
}
113117

0 commit comments

Comments
 (0)