提交 06e922d4 编写于 作者: M Mattt Thompson

Removing commented-out NSJSONWritingOptions code

上级 8f89714a
......@@ -37,7 +37,7 @@ public enum Method: String {
public enum ParameterEncoding {
case URL
case JSON//(NSJSONWritingOptions)
case JSON
case PropertyList(NSPropertyListFormat, NSPropertyListWriteOptions)
case Custom((NSURLRequest, [String: AnyObject]?) -> (NSURLRequest, NSError?))
......@@ -81,7 +81,7 @@ public enum ParameterEncoding {
mutableRequest.HTTPBody = query(parameters!).dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
}
case .JSON://(let options):
case .JSON:
let options = NSJSONWritingOptions.allZeros
if let data = NSJSONSerialization.dataWithJSONObject(parameters!, options: options, error: &error) {
mutableRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册