protocol-http 0.23.3 → 0.23.6

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: e75d177999c829771f7425826d9780247d787ae7a145bd6d90db46466c485b6d
4
- data.tar.gz: 63bb4af0ed06afe86f513b3c78606fe87d7beec9f38c95d2c1dafe0eb1fa69dc
3
+ metadata.gz: 5ac45c5109f3d77c17b617114e826ac67cacaa32c04e7986f22b7c145ced7b0d
4
+ data.tar.gz: 855c58835906c5e31bd44e30077518a3fb9b7886181ab5527c7119de4b397b5a
5
5
  SHA512:
6
- metadata.gz: db0297861b7a15bdbe274410952604bf7b8fdb6e981439b2fc42bad0453d71104dbc87c9268b4ba45d5b6f905777cbf2e0065a0c4c6ae3e895b2bc33c34bb679
7
- data.tar.gz: c411551f450228472f3010b34bf4069416bbcfb05d9408d2d9d0d058bbb960afb468b66a193c43848b27cb2e1181bc56292b4f2f3171665351a9fca17f1b3fb6
6
+ metadata.gz: 3c4d88d696d3c9404b69123d648f834f6c5f957fdd8896b9217a57cc086e944c56668ab15d18c3e9b9cb2a8888aef636d1cbfc01ba08cb59bef6a8e34aadda70
7
+ data.tar.gz: 41a02231e3fdca5425e616915bab64ee455651a60b4eb0e259fb10139def8f2faf2699655a294839aa0b45a1c759e9e2b109a57ae290ac4927268a849c26248d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -59,6 +59,8 @@ module Protocol
59
59
  if @buffer
60
60
  buffer.replace(@buffer)
61
61
  @buffer = nil
62
+ else
63
+ buffer.clear
62
64
  end
63
65
 
64
66
  if length
@@ -68,7 +68,7 @@ module Protocol
68
68
  def self.parse(string)
69
69
  head, *directives = string.split(/\s*;\s*/)
70
70
 
71
- key, value = head.split('=')
71
+ key, value = head.split('=', 2)
72
72
  directives = self.parse_directives(directives)
73
73
 
74
74
  self.new(
@@ -20,7 +20,7 @@
20
20
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  # THE SOFTWARE.
22
22
 
23
- require_relative '../headers'
23
+ require_relative '../middleware'
24
24
 
25
25
  module Protocol
26
26
  module HTTP
@@ -67,6 +67,15 @@ module Protocol
67
67
  Response[200, Headers['content-type' => 'text/plain'], ["Hello World!"]]
68
68
  end
69
69
  end
70
+
71
+ module NotFound
72
+ def self.close
73
+ end
74
+
75
+ def self.call(request)
76
+ Response[404, Headers[], []]
77
+ end
78
+ end
70
79
  end
71
80
  end
72
81
  end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Protocol
24
24
  module HTTP
25
- VERSION = "0.23.3"
25
+ VERSION = "0.23.6"
26
26
  end
27
27
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.3
4
+ version: 0.23.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -41,7 +41,7 @@ cert_chain:
41
41
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
42
42
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
43
43
  -----END CERTIFICATE-----
44
- date: 2022-08-15 00:00:00.000000000 Z
44
+ date: 2022-08-26 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
metadata.gz.sig CHANGED
Binary file