We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2cfca2 + 56319b2 commit cb05c7fCopy full SHA for cb05c7f
1 file changed
Sources/Apollo/HTTPNetworkTransport.swift
@@ -268,6 +268,12 @@ public class HTTPNetworkTransport: NetworkTransport {
268
}
269
270
271
+ request.setValue(operation.operationName, forHTTPHeaderField: "X-APOLLO-OPERATION-NAME")
272
+
273
+ if let operationID = operation.operationIdentifier {
274
+ request.setValue(operationID, forHTTPHeaderField: "X-APOLLO-OPERATION-ID")
275
+ }
276
277
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
278
279
// If there's a delegate, do a pre-flight check and allow modifications to the request.
0 commit comments