Skip to content

Commit

Permalink
Unified all multi-line dictionary formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed May 12, 2015
1 parent b865e1c commit 27f9647
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Source/Manager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ public class Manager {
return "Alamofire"
}()

return ["Accept-Encoding": acceptEncoding,
return [
"Accept-Encoding": acceptEncoding,
"Accept-Language": acceptLanguage,
"User-Agent": userAgent]
"User-Agent": userAgent
]
}()

let queue = dispatch_queue_create(nil, DISPATCH_QUEUE_SERIAL)
Expand Down
12 changes: 7 additions & 5 deletions Tests/ParameterEncodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,11 @@ class AlamofireJSONParameterEncodingTestCase: XCTestCase {
let parameters = [
"foo": "bar",
"baz": ["a", 1, true],
"qux": ["a": 1,
"b": [2, 2],
"c": [3, 3, 3]
]
"qux": [
"a": 1,
"b": [2, 2],
"c": [3, 3, 3]
]
]

let (URLRequest, error) = self.encoding.encode(self.URLRequest, parameters: parameters)
Expand Down Expand Up @@ -294,7 +295,8 @@ class AlamofirePropertyListParameterEncodingTestCase: XCTestCase {
let parameters = [
"foo": "bar",
"baz": ["a", 1, true],
"qux": ["a": 1,
"qux": [
"a": 1,
"b": [2, 2],
"c": [3, 3, 3]
]
Expand Down

0 comments on commit 27f9647

Please sign in to comment.