api_sim 6.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39559af862a53afb6f12134defec83e2684a15d9
4
- data.tar.gz: f3ac6b802dd753d2103ba91cabdaf6bca7e4aa24
3
+ metadata.gz: 33ae9a739bbdc45eb8993364f722ccfea5c87804
4
+ data.tar.gz: d727a1055689f9f901f5f99462158822335e024d
5
5
  SHA512:
6
- metadata.gz: 30572f98d44a36b17d944692ba97f31f752946579711e2bfc4a22c6024b44197d5a5a1fed2261b2e4583353b9fc30de10676e37f57f25741d6285af4ff02e51b
7
- data.tar.gz: e671b8ec5da4eadf1f4cc3cdf19a9737539e2eeb90af183c68fbd166d4fb16e73eba8bdf6c04e27d5cfeac29738c5f63b3da8a11912de320986d8f958ffc9381
6
+ metadata.gz: b2861183246f952a21ed526d5b4de6d980bd34225bc656e1eef26109c54136c9a6aa59e25e73011505307e27bd74cebb6b213a63b60454b0705c76d6853cd509
7
+ data.tar.gz: 87ad7f7ab2387625233e075d2eb90cba7dba7244d75846d71fdf65869d96fd4135eae2bad3bd3c98b9ea5b87554da5331b279e5d5e5dc9aa8882b7af7fb35518
@@ -23,10 +23,10 @@ module ApiSim
23
23
  private
24
24
  def parse_headers_from(request_env)
25
25
  request_env.select do |k, v|
26
- k =~ /^HTTP_/
26
+ k =~ /^HTTP_/ || k =~ /CONTENT_TYPE/
27
27
  end.each_with_object({}) do |(k, v), h|
28
- h[k.split('_')[1..-1].join('-')] = v
29
- end.sort
28
+ h[k.gsub(/HTTP\_/, '').split('_').join('-').downcase] = v
29
+ end
30
30
  end
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module ApiSim
2
- VERSION = "6.2.0"
2
+ VERSION = "7.0.0"
3
3
  end
@@ -30,7 +30,7 @@
30
30
  <td>
31
31
  <ul>
32
32
  <% request.headers.each do |header, value| %>
33
- <li><%= header %>: <%= value %></li>
33
+ <li><%= header.upcase %>: <%= value %></li>
34
34
  <% end %>
35
35
  </ul>
36
36
  </td>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_sim
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Taylor