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

Commit

Permalink
Update user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcook committed May 16, 2017
1 parent 2047b58 commit 714d5a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions BeamAPI.podspec
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = "BeamAPI"
s.version = "1.5.6"
s.version = "1.5.7"
s.summary = "An interface to communicate with Beam's backend."
s.homepage = "https://github.com/WatchBeam/beam-client-swift"
s.license = "MIT"
s.author = { "Jack Cook" => "jack@beam.pro" }

s.requires_arc = true
s.ios.deployment_target = "8.2"
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.5.6" }
s.source = { :git => "https://github.com/WatchBeam/beam-client-swift.git", :tag => "1.5.7" }
s.source_files = "Pod/Classes/**/*"

s.dependency "Starscream", "~> 2.0"
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
@@ -1,5 +1,5 @@
PODS:
- BeamAPI (1.5.5):
- BeamAPI (1.5.6):
- Starscream (~> 2.0)
- SwiftyJSON (~> 3.1)
- Starscream (2.0.4)
Expand All @@ -13,7 +13,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
BeamAPI: 0f513d2be2909e46c2a18d4be04e52fea043ea8e
BeamAPI: 388322f99d0a3c998c1eca606b446eda8ccff9ed
Starscream: df5974ee928b157c8eda8af8de7c620276b7dfcc
SwiftyJSON: c2842d878f95482ffceec5709abc3d05680c0220

Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Clients/ConstellationClient.swift
Expand Up @@ -39,7 +39,7 @@ public class ConstellationClient: WebSocketDelegate {

socket = WebSocket(url: URL(string: "wss://constellation.beam.pro")!)
socket?.delegate = self
socket?.headers["User-Agent"] = "BeamApp/\(BeamRequest.version) (iOS; \(BeamRequest.deviceName()))"
socket?.headers["User-Agent"] = "IOSApp/\(BeamRequest.version) (iOS; \(BeamRequest.deviceName()))"
socket?.connect()
}

Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/Utilities/BeamRequest.swift
Expand Up @@ -113,7 +113,7 @@ public class BeamRequest {
}
}

request.addValue("BeamApp/\(version) (iOS; \(deviceName()))", forHTTPHeaderField: "User-Agent")
request.addValue("IOSApp/\(version) (iOS; \(deviceName()))", forHTTPHeaderField: "User-Agent")

for (header, val) in headers {
request.addValue(val, forHTTPHeaderField: header)
Expand Down

0 comments on commit 714d5a7

Please sign in to comment.