Skip to content

Commit 21530d9

Browse files
committed
remove header
1 parent 5ff2c93 commit 21530d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/SmithyHTTPClient/SdkHttpRequest+CRT.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ extension HTTPRequest {
1818
httpRequest.path = [endpoint.path, endpoint.uri.queryString].compactMap { $0 }.joined(separator: "?")
1919
httpRequest.addHeaders(headers: headers.toHttpHeaders())
2020
httpRequest.body = isChunked ? nil : StreamableHttpBody(body: body) // body needs to be nil to use writeChunk()
21-
httpRequest.addHeader(name: "If-Range", value: "ETAG")
2221
return httpRequest
2322
}
2423

@@ -30,7 +29,6 @@ extension HTTPRequest {
3029
httpRequest.method = method.rawValue
3130
httpRequest.path = [endpoint.path, endpoint.uri.queryString].compactMap { $0 }.joined(separator: "?")
3231
httpRequest.addHeaders(headers: headers.toHttpHeaders())
33-
httpRequest.addHeader(name: "If-Range", value: "ETAG")
3432

3533
// Remove the "Transfer-Encoding" header if it exists since h2 does not support it
3634
httpRequest.removeHeader(name: "Transfer-Encoding")

0 commit comments

Comments
 (0)