From 9b5e87d81c53f61681dacfcd9559c632d32a80eb Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Wed, 10 Jan 2024 10:13:03 -0800 Subject: [PATCH] Removes boundary from accept header --- Tests/ApolloTests/RequestChainTests.swift | 8 ++++---- .../Sources/Apollo/RequestChainNetworkTransport.swift | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/ApolloTests/RequestChainTests.swift b/Tests/ApolloTests/RequestChainTests.swift index 6b99a66dc..78b29c6c7 100644 --- a/Tests/ApolloTests/RequestChainTests.swift +++ b/Tests/ApolloTests/RequestChainTests.swift @@ -380,7 +380,7 @@ class RequestChainTests: XCTestCase { return } - XCTAssertEqual(header, "multipart/mixed;boundary=\"graphql\";\(MultipartResponseDeferParser.protocolSpec),application/json") + XCTAssertEqual(header, "multipart/mixed;\(MultipartResponseDeferParser.protocolSpec),application/json") expectation.fulfill() } @@ -405,7 +405,7 @@ class RequestChainTests: XCTestCase { return } - XCTAssertEqual(header, "multipart/mixed;boundary=\"graphql\";\(MultipartResponseDeferParser.protocolSpec),application/json") + XCTAssertEqual(header, "multipart/mixed;\(MultipartResponseDeferParser.protocolSpec),application/json") expectation.fulfill() } @@ -430,7 +430,7 @@ class RequestChainTests: XCTestCase { return } - XCTAssertEqual(header, "multipart/mixed;boundary=\"graphql\";\(MultipartResponseDeferParser.protocolSpec),application/json") + XCTAssertEqual(header, "multipart/mixed;\(MultipartResponseDeferParser.protocolSpec),application/json") XCTAssertNotNil(request.allHTTPHeaderFields?["Random"]) expectation.fulfill() } @@ -460,7 +460,7 @@ class RequestChainTests: XCTestCase { return } - XCTAssertEqual(header, "multipart/mixed;boundary=\"graphql\";\(MultipartResponseDeferParser.protocolSpec),application/json") + XCTAssertEqual(header, "multipart/mixed;\(MultipartResponseDeferParser.protocolSpec),application/json") XCTAssertNotNil(request.allHTTPHeaderFields?["Random"]) expectation.fulfill() } diff --git a/apollo-ios/Sources/Apollo/RequestChainNetworkTransport.swift b/apollo-ios/Sources/Apollo/RequestChainNetworkTransport.swift index b60764b2c..24d902f25 100644 --- a/apollo-ios/Sources/Apollo/RequestChainNetworkTransport.swift +++ b/apollo-ios/Sources/Apollo/RequestChainNetworkTransport.swift @@ -109,7 +109,7 @@ open class RequestChainNetworkTransport: NetworkTransport { } else { request.addHeader( name: "Accept", - value: "multipart/mixed;boundary=\"graphql\";\(MultipartResponseDeferParser.protocolSpec),application/json" + value: "multipart/mixed;\(MultipartResponseDeferParser.protocolSpec),application/json" ) }