Browse Source

Switched `Content-Type` header to `Accept` header in README example.

Christian Noon 9 years ago
parent
commit
20bc682d3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -376,7 +376,7 @@ Adding a custom HTTP header to a `Request` is supported directly in the global `
 ```swift
 let headers = [
     "Authorization": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==",
-    "Content-Type": "application/x-www-form-urlencoded"
+    "Accept": "application/json"
 ]
 
 Alamofire.request(.GET, "https://httpbin.org/get", headers: headers)