Permalink
Browse files

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

  • Loading branch information...
victorchee authored and cnoon committed Sep 19, 2016
1 parent 0ac38d7 commit fc95610645577e3dd6b21196f0595a0b6bdb3698
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/AFError.swift
View
@@ -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
}

0 comments on commit fc95610

Please sign in to comment.