falcon 0.47.8 → 0.47.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/falcon/middleware/proxy.rb +5 -2
- data/lib/falcon/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d903fdc0bb50c3d76ee6091a0b142f18e112f93faf5de63f3f5879e4a19187
|
4
|
+
data.tar.gz: 95f81fd5c9dd1525b0d87fdb18d63d46dcfd230fdbc4f2e2aa8ae4cdce298753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94919d62d6a84416b52d7678bba3bd68e795377e07149b5f2a612cbd1afae98e1e4cfe1a8ad8fb786204d51518042ebb6c58e3130a5df524275bc95da90d9fe
|
7
|
+
data.tar.gz: 45d482bb25b531d9869d8641c36974943747c56c885d115a73234dcbccbd23ce1b42c62a35ecb648d7a6f325b69ebc9cb723d38c0053a6395de087e38d4e4fc3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -7,6 +7,8 @@ require 'async/http/client'
|
|
7
7
|
require 'protocol/http/headers'
|
8
8
|
require 'protocol/http/middleware'
|
9
9
|
|
10
|
+
require 'console/event/failure'
|
11
|
+
|
10
12
|
module Falcon
|
11
13
|
module Middleware
|
12
14
|
# A static middleware which always returns a 400 bad request response.
|
@@ -95,7 +97,7 @@ module Falcon
|
|
95
97
|
def prepare_request(request, host)
|
96
98
|
forwarded = []
|
97
99
|
|
98
|
-
Console.
|
100
|
+
Console.debug(self) do |buffer|
|
99
101
|
buffer.puts "Request authority: #{request.authority}"
|
100
102
|
buffer.puts "Host authority: #{host.authority}"
|
101
103
|
buffer.puts "Request: #{request.method} #{request.path} #{request.version}"
|
@@ -136,12 +138,13 @@ module Falcon
|
|
136
138
|
|
137
139
|
client = connect(host.endpoint)
|
138
140
|
|
141
|
+
Console.debug(self, "Sending request...", host: host, request: request, count: @count)
|
139
142
|
client.call(request)
|
140
143
|
else
|
141
144
|
super
|
142
145
|
end
|
143
146
|
rescue => error
|
144
|
-
Console.error(self
|
147
|
+
Console::Event::Failure.for(error).emit(self)
|
145
148
|
return Protocol::HTTP::Response[502, {'content-type' => 'text/plain'}, [error.class.name]]
|
146
149
|
end
|
147
150
|
end
|
data/lib/falcon/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falcon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.47.
|
4
|
+
version: 0.47.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -59,7 +59,7 @@ cert_chain:
|
|
59
59
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
60
60
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
61
61
|
-----END CERTIFICATE-----
|
62
|
-
date: 2024-08-
|
62
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
63
63
|
dependencies:
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: async
|
metadata.gz.sig
CHANGED
Binary file
|