mirror of
https://github.com/apple/pkl.git
synced 2026-06-11 16:23:01 +02:00
Improve HTTP redirect following (#1637)
This implements HTTP redirect following ourselves. The goal is: 1. All I/O is checked against `--allowed-resources` and `--allowed-modules`, including HTTP redirects 2. HTTP rewrite rules can affect redirect following 3. HTTP headers can affect redirect following --------- Co-authored-by: Islon Scherer <islonscherer@gmail.com>
This commit is contained in:
@@ -557,7 +557,7 @@ class EmbeddedExecutorTest {
|
||||
allowedModules("file:", "package:", "https:")
|
||||
allowedResources("prop:", "package:", "https:")
|
||||
moduleCacheDir(cacheDir)
|
||||
certificateFiles(FileTestUtils.selfSignedCertificate)
|
||||
certificateFiles(FileTestUtils.selfSignedCertificatePem)
|
||||
testPort(server.port)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user