Explorar el Código

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

Christian Noon hace 9 años
padre
commit
20bc682d3a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)