浏览代码

[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 9 年之前
父节点
当前提交
fa3c6d09b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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