Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Fixed an issue with logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcook committed Jul 26, 2016
1 parent 90791a9 commit f3af0af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BeamAPI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "BeamAPI"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "An interface to communicate with Beam's backend."
s.homepage = "https://github.com/WatchBeam/beam-client-swift"
s.license = "MIT"
Expand All @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.ios.deployment_target = "8.2"
s.tvos.deployment_target = "9.0"
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.0.1" }
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.0.2" }
s.source_files = "Pod/Classes/**/*"

s.dependency "Starscream", "~> 1.1"
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Utilities/BeamRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class BeamRequest {
return
}

if let csrfToken = response.allHeaderFields["X-CSRF-Token"] as? String where csrfToken != existingCSRFToken {
if let csrfToken = response.allHeaderFields["X-CSRF-Token"] as? String where csrfToken != existingCSRFToken && requestType != "DELETE" {
NSUserDefaults.standardUserDefaults().setObject(csrfToken, forKey: "CSRFToken")
dataRequest(baseURL, requestType: requestType, headers: headers, params: params, body: body, completion: completion)
return
Expand Down

0 comments on commit f3af0af

Please sign in to comment.