We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7702aa2 + b32c447 commit f003df3Copy full SHA for f003df3
1 file changed
Sources/Apollo/JSONRequest.swift
@@ -100,6 +100,9 @@ open class JSONRequest<Operation: GraphQLOperation>: HTTPRequest<Operation> {
100
if let urlForGet = transformer.createGetURL() {
101
request.url = urlForGet
102
request.httpMethod = GraphQLHTTPMethod.GET.rawValue
103
+
104
+ // GET requests shouldn't have a content-type since they do not provide actual content.
105
+ request.allHTTPHeaderFields?.removeValue(forKey: "Content-Type")
106
} else {
107
throw GraphQLHTTPRequestError.serializedQueryParamsMessageError
108
}
0 commit comments