copy_tuner_client 0.1.1.beta9 → 0.1.1.beta10
Sign up to get free protection for your applications and to get access to all the features.
@@ -49,8 +49,8 @@ module CopyTunerClient
|
|
49
49
|
|
50
50
|
def should_inject_xray?(status, headers, response)
|
51
51
|
status == 200 &&
|
52
|
-
!empty?(response) &&
|
53
52
|
html_request?(headers, response) &&
|
53
|
+
!empty?(response) &&
|
54
54
|
!file?(headers) &&
|
55
55
|
!response.body.frozen?
|
56
56
|
end
|
@@ -66,7 +66,9 @@ module CopyTunerClient
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def html_request?(headers, response)
|
69
|
-
headers['Content-Type'] &&
|
69
|
+
headers['Content-Type'] &&
|
70
|
+
headers['Content-Type'].include?('text/html') &&
|
71
|
+
response.body.include?("<html")
|
70
72
|
end
|
71
73
|
end
|
72
74
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.beta10
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -348,7 +348,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
348
348
|
version: '0'
|
349
349
|
segments:
|
350
350
|
- 0
|
351
|
-
hash:
|
351
|
+
hash: 3469519469864296276
|
352
352
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
353
353
|
none: false
|
354
354
|
requirements:
|