qst_client 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/qst_client.rb +3 -1
- metadata +3 -3
data/lib/qst_client.rb
CHANGED
@@ -35,7 +35,9 @@ class QstClient
|
|
35
35
|
def get_last_id
|
36
36
|
response = self.class.head("#{@url}/incoming", :basic_auth => @auth)
|
37
37
|
raise QstClient::Exception.new response unless (200 ... 400).include? response.code
|
38
|
-
response.headers['etag']
|
38
|
+
etag = response.headers['etag']
|
39
|
+
etag = etag.first if etag.kind_of? Array
|
40
|
+
etag
|
39
41
|
end
|
40
42
|
|
41
43
|
# Get messages from the server.
|
metadata
CHANGED