better_rest 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/better_rest.gemspec +1 -1
- data/lib/better_rest.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33046392521418c3fab310c13eff0ce9546fa04a
|
4
|
+
data.tar.gz: b81010cf6bd1618af69238732f1c9958bb331f79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b14fb47a1977f5528193239633285a68fcb127e11fc2b0d7a058940a8464b9ed3a0720b1f6216a226aba2afa9d74dd4bd272472409a16d03a7dd29f6356c65d5
|
7
|
+
data.tar.gz: 0cf65d2022c73828d3370060769f5bf5450b181090117b85018662c60a9822862e3612691f2fd965f2c4a9de2b1d4290de6b27e5c12792f7d03cf9584bf33446
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ Or download the repository here for the latest version and launch via:
|
|
25
25
|
```bash
|
26
26
|
$ ./bin/better_rest
|
27
27
|
```
|
28
|
-
To try BetteR, without installing the Gem, it's also hosted on [Heroku](http://better-rest.herokuapp.com/). Note that when run on Heroku
|
28
|
+
To try BetteR, without installing the Gem, it's also hosted on [Heroku](http://better-rest.herokuapp.com/). Note that when run on Heroku internally hosted APIs can't be tested.
|
29
29
|
|
30
30
|
### Dependencies
|
31
31
|
|
data/better_rest.gemspec
CHANGED
data/lib/better_rest.rb
CHANGED
@@ -121,7 +121,7 @@ post '/request' do
|
|
121
121
|
if File.exists? "cookiejar"
|
122
122
|
cookie = File.read("cookiejar")
|
123
123
|
end
|
124
|
-
request.options[:headers]['Cookie'] = stringify_cookies(cookie) unless cookie.empty?
|
124
|
+
request.options[:headers]['Cookie'] = stringify_cookies(cookie) unless cookie.nil? || cookie.empty?
|
125
125
|
end
|
126
126
|
|
127
127
|
|