Commit ae35c17e authored by Brian Clozel's avatar Brian Clozel

Merge pull request #13446 from izeye:client-name-none

* pr/13446:
  Add CLIENT_NAME_NONE to WebClientExchangeTags
parents 2ecd7041 de3c3cd7
......@@ -45,6 +45,8 @@ public final class WebClientExchangeTags {
private static final Pattern PATTERN_BEFORE_PATH = Pattern
.compile("^https?://[^/]+/");
private static final Tag CLIENT_NAME_NONE = Tag.of("clientName", "none");
private WebClientExchangeTags() {
}
......@@ -104,7 +106,7 @@ public final class WebClientExchangeTags {
public static Tag clientName(ClientRequest request) {
String host = request.url().getHost();
if (host == null) {
host = "none";
return CLIENT_NAME_NONE;
}
return Tag.of("clientName", host);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment