@@ -28,8 +28,6 @@ public enum RegistryError: Error {
28
28
case invalidChecksum( expected: String , actual: String )
29
29
}
30
30
31
- fileprivate let userAgent = " SwiftPackageManager/ \( ToolsVersion . currentToolsVersion) "
32
-
33
31
public final class RegistryManager {
34
32
internal static var clientFactory : ( ) -> HTTPClientProtocol = {
35
33
var configuration = HTTPClientConfiguration ( )
@@ -62,8 +60,7 @@ public final class RegistryManager {
62
60
method: . head,
63
61
url: url,
64
62
headers: [
65
- " Accept " : " application/vnd.swift.registry.v1 " ,
66
- " User-Agent " : userAgent
63
+ " Accept " : " application/vnd.swift.registry.v1 "
67
64
]
68
65
)
69
66
@@ -92,8 +89,7 @@ public final class RegistryManager {
92
89
method: . get,
93
90
url: registryBaseURL,
94
91
headers: [
95
- " Accept " : " application/vnd.swift.registry.v1+json " ,
96
- " User-Agent " : userAgent
92
+ " Accept " : " application/vnd.swift.registry.v1+json "
97
93
]
98
94
)
99
95
@@ -141,8 +137,7 @@ public final class RegistryManager {
141
137
method: . get,
142
138
url: url,
143
139
headers: [
144
- " Accept " : " application/vnd.swift.registry.v1+swift " ,
145
- " User-Agent " : userAgent
140
+ " Accept " : " application/vnd.swift.registry.v1+swift "
146
141
]
147
142
)
148
143
@@ -189,8 +184,7 @@ public final class RegistryManager {
189
184
method: . get,
190
185
url: url,
191
186
headers: [
192
- " Accept " : " application/vnd.swift.registry.v1+zip " ,
193
- " User-Agent " : userAgent
187
+ " Accept " : " application/vnd.swift.registry.v1+zip "
194
188
]
195
189
)
196
190
0 commit comments