rails-reverse-proxy 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -6
- data/VERSION +1 -1
- data/lib/reverse_proxy/client.rb +1 -1
- data/rails-reverse-proxy.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf23d29679d737e49136de095157258980b48880b63e69bb00f1fbcd0136fdc
|
4
|
+
data.tar.gz: da88db569650043b74f76cf4656bfcd30501b0cded0ed0888306115fa089ddc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 120d187b75a971b95d7f8cca93631994ade98e98f72cc349d03787f9f9b470482dec3bbcd5175c7a24f4493093552ac44e721a9cfb68e6ff3738acaba8b19ddc
|
7
|
+
data.tar.gz: fcda14733a9ae6db003b60ca646382aae400ab5f36934298aa9ffcf459f7199d5c8982028f2ec4eb4022101de234f11d3474292610c1f5f67934c48c115bff6a
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ gem 'rails-reverse-proxy'
|
|
15
15
|
Then (you guessed it!)
|
16
16
|
|
17
17
|
```
|
18
|
-
$ bundle
|
18
|
+
$ bundle install
|
19
19
|
```
|
20
20
|
|
21
21
|
## Usage
|
@@ -75,6 +75,12 @@ If you'd like to customize options passed into the underlying [`Net:HTTP`](https
|
|
75
75
|
reverse_proxy "http://localhost:8000", http: { read_timeout: 20, open_timeout: 100 }
|
76
76
|
```
|
77
77
|
|
78
|
+
If you'd like to reset the `Accept-Encoding` header in order to disable compression or other server-side encodings
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
reverse_proxy "http://localhost:8000", reset_accept_encoding: true
|
82
|
+
```
|
83
|
+
|
78
84
|
Determine what version you're using
|
79
85
|
|
80
86
|
```ruby
|
@@ -91,10 +97,11 @@ All pull requests will become first class citizens.
|
|
91
97
|
|
92
98
|
Special thanks to our contributors!
|
93
99
|
|
94
|
-
- [
|
95
|
-
- [miyukki](https://github.com/miyukki)
|
96
|
-
- [bapirex](https://github.com/bapirex)
|
97
|
-
- [marcosbeirigo](https://github.com/marcosbeirigo)
|
100
|
+
- [aardvarkk](https://github.com/aardvarkk)
|
98
101
|
- [avinashkoulavkar](https://github.com/avinashkoulavkar)
|
102
|
+
- [bapirex](https://github.com/bapirex)
|
99
103
|
- [jcs](https://github.com/jcs)
|
100
|
-
- [
|
104
|
+
- [kylewlacy](https://github.com/kylewlacy)
|
105
|
+
- [marcosbeirigo](https://github.com/marcosbeirigo)
|
106
|
+
- [mediafinger](https://github.com/mediafinger)
|
107
|
+
- [miyukki](https://github.com/miyukki)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|
data/lib/reverse_proxy/client.rb
CHANGED
@@ -65,9 +65,9 @@ module ReverseProxy
|
|
65
65
|
&& source_request.body
|
66
66
|
source_request.body.rewind
|
67
67
|
target_request.body_stream = source_request.body
|
68
|
+
target_request.content_length = source_request.content_length || 0
|
68
69
|
end
|
69
70
|
|
70
|
-
target_request.content_length = source_request.content_length || 0
|
71
71
|
target_request.content_type = source_request.content_type if source_request.content_type
|
72
72
|
|
73
73
|
# Hold the response here
|
data/rails-reverse-proxy.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: rails-reverse-proxy 0.
|
5
|
+
# stub: rails-reverse-proxy 0.12.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rails-reverse-proxy".freeze
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.12.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["James Hu".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2023-03-02"
|
15
15
|
s.description = "Reverse proxy for Ruby on Rails".freeze
|
16
16
|
s.email = "hello@james.hu".freeze
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-reverse-proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|