iodine 0.7.54 → 0.7.55

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: 6bf1dc45230e4d64130055f60291bddd92144bc7c2349a8b10a8829d32f3c09c
4
- data.tar.gz: 858d92f6b21c05d6b38ee525822c986de2757e1a290f8164369012e60735b920
3
+ metadata.gz: 1c90d550606141837ea921c3f26de4948561b1000c1af434e7137475c27f2da8
4
+ data.tar.gz: 70c8af63ff1508d717ca35cfa76afb320ff675168c26af87bd6b47217c870503
5
5
  SHA512:
6
- metadata.gz: ebaf17fafa2997d5b2d06df4fbc9c537558e5f6a2464b16da3af20908fc6f3875d772ad81da393cb8bcba713bb359fb8918266060a9d80ee5ec07f04957732dd
7
- data.tar.gz: 7e87d6eaa475c5c39e0dfdb60ad8b45a3d095e7f8b702dacbdbc5acf8a7410caf86793415e482b8cb08b882ddc5678a90800697a8ce6a1c6cdece47cf7cecec1
6
+ metadata.gz: 575cae86c09a016b9ae0947a3e76004944c0d8895a802846843c8278bec44668ff8eaa16cb411496594070a2fe872b03d3d883e0cded8af560a39dd2c37678ef
7
+ data.tar.gz: f74425c8a77d70f5d8937cda11f07e820388f0f17cb63a7fe2400b2339fd7e387dbba28847da1b7d29dd01640f05de20c4e79a825093162d73d65685ee2cac32
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ Please notice that this change log contains changes for upcoming releases as wel
6
6
 
7
7
  ## Changes:
8
8
 
9
+ #### Change log v.0.7.55 (2023-05-01)
10
+
11
+ **Fix**: Fixes `X-SENDFILE` support so it works will `POST` requests. Credit to @fgoepel for PR #141.
12
+
9
13
  #### Change log v.0.7.54 (2023-03-15)
10
14
 
11
15
  **Fix**: Fixes verbosity option in iodine's CLI where the value `0` was ignored. Credit to @jsaak for opening issue #139.
data/ext/iodine/http.c CHANGED
@@ -565,6 +565,7 @@ found_file:
565
565
  http_finish(h);
566
566
  return 0;
567
567
  }
568
+ goto open_file;
568
569
  break;
569
570
  }
570
571
  http_send_error(h, 403);
@@ -42,7 +42,8 @@ void http_on_request_handler______internal(http_s *h,
42
42
  fiobj_hash_get2(h->headers, fiobj_obj2hash(HTTP_HEADER_ACCEPT)),
43
43
  HTTP_HVALUE_SSE_MIME))
44
44
  goto eventsource;
45
- if (settings->public_folder) {
45
+ if (settings->public_folder &&
46
+ (fiobj_obj2cstr(h->method).len != 4 || strncasecmp("post", fiobj_obj2cstr(h->method).data, 4))) {
46
47
  fio_str_info_s path_str = fiobj_obj2cstr(h->path);
47
48
  if (!http_sendfile2(h, settings->public_folder,
48
49
  settings->public_folder_length, path_str.data,
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '0.7.54'.freeze
2
+ VERSION = '0.7.55'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.54
4
+ version: 0.7.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2023-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -246,7 +246,7 @@ licenses:
246
246
  metadata:
247
247
  allowed_push_host: https://rubygems.org
248
248
  post_install_message: |-
249
- Thank you for installing Iodine 0.7.54.
249
+ Thank you for installing Iodine 0.7.55.
250
250
  Remember: if iodine supports your business, it's only fair to give value back (code contributions / donations).
251
251
  rdoc_options: []
252
252
  require_paths: