Skip to content

Commit

Permalink
Merge pull request #5724 from leonardehrenfried/user-agent
Browse files Browse the repository at this point in the history
Add user agent to HTTP client
  • Loading branch information
leonardehrenfried authored Mar 12, 2024
2 parents 9590e5d + 6c956b8 commit 51a381e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private OtpHttpClient(Duration timeout, Duration connectionTtl, int maxConnectio

HttpClientBuilder httpClientBuilder = HttpClients
.custom()
.setUserAgent("OpenTripPlanner")
.setConnectionManager(connectionManager)
.setDefaultRequestConfig(requestConfig(timeout));

Expand Down

0 comments on commit 51a381e

Please sign in to comment.