Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Temporarily disabling -b flags in cURL debug on OS X because of a spe…
Browse files Browse the repository at this point in the history
…c validation error with CocoaPods 0.36.0.beta-1
  • Loading branch information
mattt committed Jan 29, 2015
1 parent df6f66f commit 501233f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,9 @@ extension Request: DebugPrintable {
}
}

// Temporarily disabled on OS X due to build failure for CocoaPods
// See https://github.com/CocoaPods/swift/issues/24
#if !os(OSX)
if let cookieStorage = session.configuration.HTTPCookieStorage {
if let cookies = cookieStorage.cookiesForURL(URL) as? [NSHTTPCookie] {
if !cookies.isEmpty {
Expand All @@ -1266,6 +1269,7 @@ extension Request: DebugPrintable {
}
}
}
#endif

if request.allHTTPHeaderFields != nil {
for (field, value) in request.allHTTPHeaderFields! {
Expand Down
4 changes: 4 additions & 0 deletions Tests/RequestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ class AlamofireRequestDebugDescriptionTestCase: XCTestCase {
XCTAssert(components.last! == "\"\(URL)\"", "URL component should be equal")
}

// Temporarily disabled on OS X due to build failure for CocoaPods
// See https://github.com/CocoaPods/swift/issues/24
#if !os(OSX)
func testPOSTRequestWithCookieDebugDescription() {
let URL = "http://httpbin.org/post"

Expand All @@ -150,6 +153,7 @@ class AlamofireRequestDebugDescriptionTestCase: XCTestCase {
XCTAssert(components[5..<6] == ["-b"], "command should contain -b flag")
XCTAssert(components.last! == "\"\(URL)\"", "URL component should be equal")
}
#endif

// MARK: -

Expand Down

0 comments on commit 501233f

Please sign in to comment.