Browse Source

Update Sample .authorization Usage (#2952)

Sebastian 6 years ago
parent
commit
6afd00ef8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Documentation/Usage.md

+ 1 - 1
Documentation/Usage.md

@@ -619,7 +619,7 @@ If you are communicating with an API that always requires an `Authenticate` or s
 let user = "user"
 let password = "password"
 
-let headers: HTTPHeaders = [.authenticate(username: user, password: password)]
+let headers: HTTPHeaders = [.authorization(username: user, password: password)]
 
 AF.request("https://httpbin.org/basic-auth/user/password", headers: headers)
     .responseJSON { response in