falcon 0.47.8 → 0.47.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69760266ec4a2a5df898ab0094e3c7415cb32499f490cbb72b385c5a3c9d7074
4
- data.tar.gz: 96fbbf199225e6d00f0987e67b0be54cf3d290300e9cab8a80129bde9494855a
3
+ metadata.gz: b825e49f536d3fa8bb0bc337cfcc68f0b73edbf9687ff2dad5679dfa4a0b397e
4
+ data.tar.gz: f1442f53f2a5dc95f9370dc40b8680f4623a9c1c4efffe03700dcc013b731a5b
5
5
  SHA512:
6
- metadata.gz: ff0c55a052994c4af8dcf91f16b4a941108d7c25447ff5ffd874ff1961727b03edcf30a8ef35173e090e27424f893840978997ba8cd63485d5e9d987a90c3380
7
- data.tar.gz: 3318a5133a29556b58c3f7ce07b94846897dedb2e700617aeb0aecdb1d79ad03a7558bf9b25ecd237e9fd8161a49833ea069fae83f24c90f8dfb604ad612dbf1
6
+ metadata.gz: 1d41bfb63b77bff804672b092dd6df9c4c2e4fd2f0dc26bc3f5358d54d909454bb2fdae7d1b1945ac57e6f39f7cb7fe35e5527d81baf49a845b46879ba55a783
7
+ data.tar.gz: 84d7853de0b47391bf15e2fc5c7ff294bb4b2c3b1d5f873a517d682cc30b9b5a487cbb8c5191e061cc88ceb80f0f57b32aa9a9e69aa77ca7d70779fe5ea531b7
checksums.yaml.gz.sig CHANGED
Binary file
@@ -81,8 +81,6 @@ module Falcon
81
81
 
82
82
  context.session_id_context = self.ssl_session_id
83
83
 
84
- context.ssl_version = :TLSv1_2_server
85
-
86
84
  context.set_params(
87
85
  ciphers: ::Falcon::TLS::SERVER_CIPHERS,
88
86
  verify_mode: ::OpenSSL::SSL::VERIFY_NONE,
@@ -7,6 +7,9 @@ require 'async/http/client'
7
7
  require 'protocol/http/headers'
8
8
  require 'protocol/http/middleware'
9
9
 
10
+ require 'console/event/failure'
11
+ require 'traces/provider'
12
+
10
13
  module Falcon
11
14
  module Middleware
12
15
  # A static middleware which always returns a 400 bad request response.
@@ -95,7 +98,7 @@ module Falcon
95
98
  def prepare_request(request, host)
96
99
  forwarded = []
97
100
 
98
- Console.logger.debug(self) do |buffer|
101
+ Console.debug(self) do |buffer|
99
102
  buffer.puts "Request authority: #{request.authority}"
100
103
  buffer.puts "Host authority: #{host.authority}"
101
104
  buffer.puts "Request: #{request.method} #{request.path} #{request.version}"
@@ -141,9 +144,17 @@ module Falcon
141
144
  super
142
145
  end
143
146
  rescue => error
144
- Console.error(self, error)
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
150
+
151
+ Traces::Provider(self) do
152
+ def call(request)
153
+ Traces.trace('falcon.middleware.proxy.call', attributes: {authority: request.authority}) do
154
+ super
155
+ end
156
+ end
157
+ end
147
158
  end
148
159
  end
149
160
  end
@@ -55,6 +55,14 @@ module Falcon
55
55
  super
56
56
  end
57
57
  end
58
+
59
+ Traces::Provider(self) do
60
+ def call(request)
61
+ Traces.trace('falcon.middleware.redirect.call', attributes: {authority: request.authority}) do
62
+ super
63
+ end
64
+ end
65
+ end
58
66
  end
59
67
  end
60
68
  end
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2024, by Samuel Williams.
5
5
 
6
6
  module Falcon
7
- VERSION = "0.47.8"
7
+ VERSION = "0.47.10"
8
8
  end
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.8
4
+ version: 0.47.10
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-25 00:00:00.000000000 Z
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