Skip to content

Commit 6088025

Browse files
algolia-botmillotp
andcommitted
fix(clients): use correct user agent (generated)
algolia/api-clients-automation#4103 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent fb1bc46 commit 6088025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Core/Networking/RequestBuilder/EchoRequestBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ final class EchoRequestBuilder: RequestBuilder {
7878
originalBodyData: urlRequest.httpBody,
7979
path: urlComponents?.percentEncodedPath ?? "",
8080
host: url.host ?? "",
81-
algoliaAgent: headers["X-Algolia-Agent"] ?? "",
81+
algoliaAgent: headers["User-Agent"] ?? "",
8282
queryParameters: queryParameters,
8383
headers: headers
8484
)

0 commit comments

Comments
 (0)