Skip to content

Commit

Permalink
Merge pull request Alamofire#598 from Alamofire/fix/issue_510_missing…
Browse files Browse the repository at this point in the history
…_content_type
  • Loading branch information
cnoon committed Jul 21, 2015
2 parents 6f0dc33 + e476f96 commit a78f0c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Validation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ extension Request {
return true
}
}
} else {
for contentType in acceptableContentTypes {
if let MIMEType = MIMEType(contentType) where MIMEType.type == "*" && MIMEType.subtype == "*" {
return true
}
}
}

return false
Expand Down

0 comments on commit a78f0c6

Please sign in to comment.