Floppy-amee 2.0.14 → 2.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amee/connection.rb +4 -0
- data/lib/amee/version.rb +1 -1
- metadata +2 -2
data/lib/amee/connection.rb
CHANGED
@@ -200,8 +200,12 @@ module AMEE
|
|
200
200
|
end
|
201
201
|
|
202
202
|
def send_request(request, format = @format)
|
203
|
+
# Set auth token in cookie (and header just in case someone's stripping cookies)
|
204
|
+
request['Cookie'] = "authToken=#{@auth_token}"
|
203
205
|
request['authToken'] = @auth_token
|
206
|
+
# Set accept header
|
204
207
|
request['Accept'] = content_type(format)
|
208
|
+
# Do the business
|
205
209
|
response = @http.request(request)
|
206
210
|
# Handle 404s
|
207
211
|
if response.code == '404'
|
data/lib/amee/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Floppy-amee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-01 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|