瀏覽代碼

[PR #1558] Fixed bug and typo in AFError implementation.

Victor Chee 9 年之前
父節點
當前提交
fc95610645
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Source/AFError.swift

+ 3 - 3
Source/AFError.swift

@@ -144,7 +144,7 @@ extension AFError {
     /// Returns whether the AFError is a parameter encoding error. When `true`, the `underlyingError` property will
     /// contain the associated value.
     public var isParameterEncodingError: Bool {
-        if case .multipartEncodingFailed = self { return true }
+        if case .parameterEncodingFailed = self { return true }
         return false
     }
 
@@ -297,8 +297,8 @@ extension AFError.ResponseValidationFailureReason {
 
     var responseContentType: String? {
         switch self {
-        case .unacceptableContentType(_, let reponseType):
-            return reponseType
+        case .unacceptableContentType(_, let responseType):
+            return responseType
         default:
             return nil
         }