Explorar el Código

[PR #1927] Fixed bug in README example code around default headers.

The example code in the "Modifying the Session Configuration" section was calling the `defaultHTTPHeaders` property as an instance property rather than static.
Artur Antonov hace 9 años
padre
commit
fa3c6d09b6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -913,7 +913,7 @@ let sessionManager = Alamofire.SessionManager(configuration: configuration)
 #### Modifying the Session Configuration
 
 ```swift
-var defaultHeaders = Alamofire.SessionManager.default.defaultHTTPHeaders
+var defaultHeaders = Alamofire.SessionManager.defaultHTTPHeaders
 defaultHeaders["DNT"] = "1 (Do Not Track Enabled)"
 
 let configuration = URLSessionConfiguration.default