You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a parent HTTP request returns a redirect respose, subsequent child requests should respect the redirect location from parent's response.
Parent Request
Child Request
pack.toml
[index].file
index.toml
[[files]].file
Example
Parent Request for pack.toml: GET http://myserver/v1.19/pack.toml
> GET /v1.19/pack.toml
> HOST: myserver
< HTTP/1.1 301 Moved Permanently
< Location: http://myserver/v1.19.0/pack.toml
Expected Behavior:
With the example request/response above packwiz-installer should make subsequent child requests relative to the redirect response:
Child Index Request: http://myserver/v1.19.0/index.toml
Actual Behavior:
The current implementation makes subsequent child requests relative to original Parent pack.toml request:
Child Index Request: http://myserver/v1.19/index.toml
Fix on Web Server side:
I know that a simple fix for this is to setup a server-side redirect/rewrite for everything in the directory (/v1.19/* in the example), but packwiz-installer should respect location changes so that it's not constantly getting redirects responses.
The text was updated successfully, but these errors were encountered:
Description
If a parent HTTP request returns a redirect respose, subsequent child requests should respect the redirect location from parent's response.
Example
Parent Request for
pack.toml
:GET http://myserver/v1.19/pack.toml
Expected Behavior:
With the example request/response above packwiz-installer should make subsequent child requests relative to the redirect response:
Child Index Request:
http://myserver/v1.19.0/index.toml
Actual Behavior:
The current implementation makes subsequent child requests relative to original Parent pack.toml request:
Child Index Request:
http://myserver/v1.19/index.toml
Fix on Web Server side:
I know that a simple fix for this is to setup a server-side redirect/rewrite for everything in the directory (
/v1.19/*
in the example), but packwiz-installer should respect location changes so that it's not constantly getting redirects responses.The text was updated successfully, but these errors were encountered: