diff --git a/IoGInfrastructure.xcodeproj/project.pbxproj b/IoGInfrastructure.xcodeproj/project.pbxproj index 0ba9219..cebaeb1 100644 --- a/IoGInfrastructure.xcodeproj/project.pbxproj +++ b/IoGInfrastructure.xcodeproj/project.pbxproj @@ -432,7 +432,7 @@ OBJ_28 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - CURRENT_PROJECT_VERSION = 12; + CURRENT_PROJECT_VERSION = 13; DRIVERKIT_DEPLOYMENT_TARGET = 19.0; ENABLE_TESTABILITY = YES; FRAMEWORK_SEARCH_PATHS = ( @@ -444,7 +444,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx"; MACOSX_DEPLOYMENT_TARGET = 10.10; - MARKETING_VERSION = 3.5; + MARKETING_VERSION = 3.6; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; @@ -463,7 +463,7 @@ OBJ_29 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - CURRENT_PROJECT_VERSION = 12; + CURRENT_PROJECT_VERSION = 13; DRIVERKIT_DEPLOYMENT_TARGET = 19.0; ENABLE_TESTABILITY = YES; FRAMEWORK_SEARCH_PATHS = ( @@ -475,7 +475,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx"; MACOSX_DEPLOYMENT_TARGET = 10.10; - MARKETING_VERSION = 3.5; + MARKETING_VERSION = 3.6; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; diff --git a/Source/IoGInfrastructure/Managers/GraphQL/IoGGQLManager.swift b/Source/IoGInfrastructure/Managers/GraphQL/IoGGQLManager.swift index 7be1c2d..45caf68 100644 --- a/Source/IoGInfrastructure/Managers/GraphQL/IoGGQLManager.swift +++ b/Source/IoGInfrastructure/Managers/GraphQL/IoGGQLManager.swift @@ -198,6 +198,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlQuery.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfDefaultType().registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfDefaultType().transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -229,6 +231,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlQuery.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfDefaultType().registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfDefaultType().transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -249,6 +253,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlQuery.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -269,6 +275,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlQuery.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -300,6 +308,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlMutation.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfDefaultType().registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfDefaultType().transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -339,6 +349,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlMutation.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfDefaultType().registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfDefaultType().transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -367,6 +379,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlMutation.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1 @@ -395,6 +409,8 @@ public class IoGGQLManager: IoGDataManagerDelegate let payloadData = Data(gqlMutation.utf8) urlRequest.httpBody = payloadData urlRequest.httpMethod = "POST" + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") + urlRequest.setValue("application/graphql", forHTTPHeaderField: "Content-Type") IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).registerDelegate(delegate: self) let dataManagerRequestID = IoGDataManager.dataManagerOfType(type: .IoGDataManagerTypeMock).transmitRequest(request: urlRequest, customTypeIdentifier: IoGConfigurationManager.gqlManagerCustomDataManagerType) requestID += 1