diff --git a/VCNetworking/VCNetworking/encoders/PresentationResponseEncoder.swift b/VCNetworking/VCNetworking/encoders/PresentationResponseEncoder.swift index af41406..f244fb9 100644 --- a/VCNetworking/VCNetworking/encoders/PresentationResponseEncoder.swift +++ b/VCNetworking/VCNetworking/encoders/PresentationResponseEncoder.swift @@ -23,25 +23,6 @@ struct PresentationResponseEncoder: Encoding { } func encode(value: PresentationResponse) throws -> Data { - -// let idToken = try value.idToken.serialize() -// -// guard let vp = try value.vpToken?.serialize() else { -// throw PresentationResponseEncoderError.noVerifiablePresentationInResponse -// } -// -// let idTokenQueryItem = URLQueryItem(name: Constants.idToken, value: idToken) -// let vpTokenQueryItem = URLQueryItem(name: Constants.vpToken, value: vp) -// let stateQueryItem = URLQueryItem(name: Constants.state, value: value.state) -// -// var components = URLComponents() -// components.queryItems = [idTokenQueryItem, vpTokenQueryItem, stateQueryItem] -// -// guard let formattedResponse = components.query?.data(using: .utf16) else { -// throw PresentationResponseEncoderError.unableToSerializeResponse -// } -// -// return formattedResponse return try JSONEncoder().encode(value) } } diff --git a/VCNetworking/VCNetworkingTests/operations/post/PostPresentationResponseOperationTests.swift b/VCNetworking/VCNetworkingTests/operations/post/PostPresentationResponseOperationTests.swift index e4b27db..18d9908 100644 --- a/VCNetworking/VCNetworkingTests/operations/post/PostPresentationResponseOperationTests.swift +++ b/VCNetworking/VCNetworkingTests/operations/post/PostPresentationResponseOperationTests.swift @@ -42,7 +42,6 @@ class PostPresentionResponseOperationTests: XCTestCase { let encodedBody = try encoder.encode(value: expectedPresentationResponse) XCTAssertEqual(postOperation.urlRequest.httpBody!, encodedBody) XCTAssertEqual(postOperation.urlRequest.httpMethod!, Constants.POST) - XCTAssertEqual(postOperation.urlRequest.value(forHTTPHeaderField: Constants.CONTENT_TYPE)!, Constants.FORM_URLENCODED) } func testInvalidUrlInit() {