Skip to content

Commit

Permalink
Add user agent to HTTP calls (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
nylonee committed Jun 6, 2024
1 parent d83d235 commit cb4384d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/http/HttpClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class HttpClient {
.withHeaders(
Header.Raw(CIString("Accept"), "application/json"),
Header.Raw(CIString("Content-Type"), "application/json"),
Header.Raw(CIString("User-Agent"), "watchlistarr/1.0"),
Header.Raw(CIString("Host"), host)
)
val requestWithApiKey = apiKey.fold(baseRequest)(key =>
Expand Down

0 comments on commit cb4384d

Please sign in to comment.