Fix build error caused by immutability of value type

pull/6346/head
Yosuke Ishikawa 9 years ago
parent e107f8e688
commit 9a4d089388
  1. 4
      src/objective-c/examples/SwiftSample/ViewController.swift

@ -71,7 +71,7 @@ class ViewController: UIViewController {
NSLog("2. Response trailers: \(RPC.responseTrailers)")
}
RPC.requestHeaders["My-Header"] = "My value"
RPC.requestHeaders.setObject("My value", forKey: "My-Header")
RPC.start()
@ -84,7 +84,7 @@ class ViewController: UIViewController {
let call = GRPCCall(host: RemoteHost, path: method.HTTPPath, requestsWriter: requestsWriter)
call.requestHeaders["My-Header"] = "My value"
call.requestHeaders.setObject("My value", forKey: "My-Header")
call.startWithWriteable(GRXWriteable { response, error in
if let response = response as? NSData {

Loading…
Cancel
Save