toast 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controller/toast_controller.rb +7 -1
- data/lib/toast/version.rb +1 -1
- metadata +4 -4
@@ -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
|
-
|
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
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:
|
4
|
+
hash: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
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:
|
18
|
+
date: 2018-07-19 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|