rack-tctp 0.9.10 → 0.9.11

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack/tctp.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 635ab5d0d9a13069e01a69fefdacb12bdba96233
4
- data.tar.gz: 902d48347e6bb827a8f6b66733d41ef6af874730
3
+ metadata.gz: 46ea2b2f083a9a4ceeff131c6409ff5b4cb1fa59
4
+ data.tar.gz: a21ea24c3c1bea8a375e5e5843baa24b89233642
5
5
  SHA512:
6
- metadata.gz: 7cf0f61ae9c756c914777f98993f3ef79bdd5dc179c37bcc5fb8de55639f147967b0d8b4e373ca64786aa8b300cabcea24399ac137e0a22657092e4718bd5023
7
- data.tar.gz: 6f1a5ba6518ab159391a06bfb6c33f01cd630236cc88dc553daf4c5159768704816f741ade25757e22acb405cb4b25b90bb6f771d712340ae906675ca75c66cf
6
+ metadata.gz: 6d752079e52c314f395dffc1a41ae54b505d0c163dd26da793b9f87ffca6d591ff5c9ea5964c5703a171b7ea037f82099b96abb5134c37df607dbd9eaf19b791
7
+ data.tar.gz: 09ad98dc4f25b5d762c13b9d92d7335e4b613e08a6013e8232d82bdcbf5e73fbccec58cd3498ad9b51067bcce3068278b3088d0c17cbbce2f04183fa14111394
data/lib/rack/tctp.rb CHANGED
@@ -95,7 +95,7 @@ module Rack
95
95
  if is_tctp_encrypted_body?(req) then
96
96
  decrypted_body = StringIO.new
97
97
 
98
- halec_url = req.body.readline.chomp
98
+ halec_url = req.body.gets.chomp
99
99
 
100
100
  # Gets the HALEC
101
101
  halec = @sessions[req.cookies['tctp_session_cookie']].halecs[URI(halec_url)]
@@ -108,7 +108,9 @@ module Rack
108
108
  error(e.message + e.backtrace.join("<br/>\n"))
109
109
  end
110
110
 
111
- req.body.string = decrypted_body.string
111
+ decrypted_body.rewind
112
+
113
+ env['rack.input'] = decrypted_body
112
114
  end
113
115
 
114
116
  status, headers, body = @app.call(env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-tctp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Slawik