toast 0.9.4 → 0.9.5

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.
@@ -10,7 +10,13 @@ class ToastController < ApplicationController
10
10
 
11
11
  unless request.headers["LINK"].nil?
12
12
  # extract "path_info" from link header
13
- request.headers["LINK"] =~ /(#{request.protocol + request.host + request.script_name})(.*)/
13
+ port = if(request.port != 80 and request.port != 443)
14
+ ":#{request.port}"
15
+ else
16
+ ""
17
+ end
18
+
19
+ request.headers["LINK"] =~ /(#{request.protocol + request.host + port + request.script_name})(.*)/
14
20
  end
15
21
 
16
22
  toast_response = @resource.apply(request.method, request.body.read, request.content_type, $2)
data/lib/toast/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Toast
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toast
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 4
10
- version: 0.9.4
9
+ - 5
10
+ version: 0.9.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - robokopp (Robert Annies)
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2017-03-09 00:00:00 +01:00
18
+ date: 2018-07-19 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency