mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 14:26:36 +08:00
[优化] 将 OpenRestyProxyRequestBufferingEnabled 设置为 false,并更新相关文档
This commit is contained in:
@@ -318,6 +318,18 @@ func TestOpenRestyCommonRequestOptionsRender(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestOpenRestyProxyRequestBufferingDefaultsToOff(t *testing.T) {
|
||||
setupServiceTestDB(t)
|
||||
|
||||
preview, err := PreviewConfigVersion()
|
||||
if err != nil {
|
||||
t.Fatalf("PreviewConfigVersion failed: %v", err)
|
||||
}
|
||||
if !strings.Contains(preview.MainConfig, "proxy_request_buffering off;") {
|
||||
t.Fatal("expected preview main config to default proxy_request_buffering to off")
|
||||
}
|
||||
}
|
||||
|
||||
func setupServiceTestDB(t *testing.T) {
|
||||
t.Helper()
|
||||
common.SQLitePath = filepath.Join(t.TempDir(), "service.db")
|
||||
|
||||
Reference in New Issue
Block a user