phantom_proxy 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/phantom_proxy/phantomjsserver.rb +2 -2
- metadata +4 -4
@@ -155,7 +155,7 @@ module PhantomJSProxy
|
|
155
155
|
url = prepareUrl(env, params, req, https_request, type)
|
156
156
|
|
157
157
|
phJS.getUrl(url, picture, loadFrames)
|
158
|
-
|
158
|
+
|
159
159
|
#Create the response
|
160
160
|
if phJS.ready != 200
|
161
161
|
if !/favicon\.ico/.match(req.url())
|
@@ -164,7 +164,7 @@ module PhantomJSProxy
|
|
164
164
|
else
|
165
165
|
control_panel.add_special_request "@favicon_requests"
|
166
166
|
end
|
167
|
-
resp = Rack::Response.new([], phJS.ready , {
|
167
|
+
resp = Rack::Response.new([], phJS.ready > 0 ? phJS.ready : 404 , {
|
168
168
|
'Content-Type' => 'text/html'
|
169
169
|
}) { |r|
|
170
170
|
r.write(phJS.dom)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phantom_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 13
|
10
|
+
version: 1.2.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Sudmann
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-04-
|
18
|
+
date: 2013-04-25 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|