diff options
author | Valery Piashchynski <[email protected]> | 2021-03-16 14:51:11 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-16 14:51:11 +0300 |
commit | e4940e1f73ca2ae4a38e7ef72176ee67fcab12e5 (patch) | |
tree | ec1dacfdaafcbbf55c14d307e95dbd46191b2321 | |
parent | 2d52428ac2ecafb84731e49a51bff2502b924585 (diff) | |
parent | 578a2d5c05283691ce58afabdb5bcd49e4a680bf (diff) |
Merge pull request #598 from spiral/add_redirect_flag
๐ท correct(http): http internal redirect code changed from 307 to 308
-rw-r--r-- | CHANGELOG.md | 21 | ||||
-rw-r--r-- | plugins/http/config/http.go | 2 | ||||
-rw-r--r-- | plugins/http/plugin.go | 2 |
3 files changed, 12 insertions, 13 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 152b00e6..5dd60a4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,7 @@ CHANGELOG ========= -v2.0.1 (23.03.2021) -------------------- +v2.0.2 (06.04.2021) - ๐ Fix: Bug with required Root CA certificate for the SSL, not it's optional. - ๐ New: HTTP/FCGI/HTTPS internal logs instead of going to the raw stdout will be displayed in the RR logger at the `Info` log level. @@ -18,26 +17,26 @@ v2.0.1 (09.03.2021) v2.0.0 (02.03.2021) ------------------- -- โ๏ธ Added shared server to create PHP worker pools instead of isolated worker pool in each individual plugin. -- ๐ง New plugin system with auto-recovery, easier plugin API. +- โ๏ธ Add a shared server to create PHP worker pools instead of isolated worker pool in each individual plugin. +- ๐ New plugin system with auto-recovery, easier plugin API. - ๐ New `logger` plugin to configure logging for each plugin individually. - ๐ Up to 50% performance increase in HTTP workloads. -- โ๏ธ Added **[Temporal Workflow](https://temporal.io)** plugin to run distributed computations on scale. -- โ๏ธ Added `debug` flag to reload PHP worker ahead of request (emulates PHP-FPM behavior). -- โ Eliminated `limit` service, now each worker pool incluides `supervisor` configuration. +- โ๏ธ Add **[Temporal Workflow](https://temporal.io)** plugin to run distributed computations on scale. +- โ๏ธ Add `debug` flag to reload PHP worker ahead of a request (emulates PHP-FPM behavior). +- โ Eliminate `limit` service, now each worker pool includes `supervisor` configuration. - ๐ New resetter, informer plugins to perform hot reloads and observe loggers in a system. -- ๐ซ Exposed more HTTP plugin configuration options. +- ๐ซ Expose more HTTP plugin configuration options. - ๐ Headers, static and gzip services now located in HTTP config. - ๐ Ability to configure the middleware sequence. - ๐ฃ Faster Goridge protocol (eliminated 50% of syscalls). -- ๐พ Added support for binary payloads for RPC (`msgpack`). +- ๐พ Add support for binary payloads for RPC (`msgpack`). - ๐ Server no longer stops when a PHP worker dies (attempts to restart). - ๐พ New RR binary server downloader. - ๐ฃ Echoing no longer breaks execution (yay!). - ๐ Migration to ZapLogger instead of Logrus. -- ๐ฅ RR can no longer stuck when studding down with broken tasks in pipeline. +- ๐ฅ RR can no longer stuck when studding down with broken tasks in a pipeline. - ๐งช More tests, more static analysis. -- ๐ฅ Created a new foundation for new KV, WebSocket, GRPC and Queue plugins. +- ๐ฅ Create a new foundation for new KV, WebSocket, GRPC and Queue plugins. v2.0.0-RC.4 (20.02.2021) ------------------- diff --git a/plugins/http/config/http.go b/plugins/http/config/http.go index d48ed022..8b63395f 100644 --- a/plugins/http/config/http.go +++ b/plugins/http/config/http.go @@ -97,7 +97,7 @@ func (c *HTTP) InitDefaults() error { } if c.SSLConfig.Address == "" { - c.SSLConfig.Address = ":443" + c.SSLConfig.Address = "127.0.0.1:443" } err := c.HTTP2Config.InitDefaults() diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index 0686f6b5..69d13bc8 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -418,7 +418,7 @@ func (s *Plugin) redirect(w http.ResponseWriter, r *http.Request) { RawQuery: r.URL.RawQuery, } - http.Redirect(w, r, target.String(), http.StatusTemporaryRedirect) + http.Redirect(w, r, target.String(), http.StatusPermanentRedirect) } // https://golang.org/pkg/net/http/#Hijacker |