Revision 7612f13b5eac201b919946986d0f8f543d06c994 authored by Dongjoon Hyun on 03 August 2024, 19:21:35 UTC, committed by Dongjoon Hyun on 03 August 2024, 19:21:35 UTC
### What changes were proposed in this pull request?

This is a follow-up of #46111 to prevent redundant redirection by adding trailing slashes like #46157 .

### Why are the changes needed?

- To remove redundant redirection.
```
$ curl -v http://localhost:8080/environment
* Host localhost:8080 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:8080...
* connect to ::1 port 8080 from ::1 port 50081 failed: Connection refused
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080
> GET /environment HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 302 Found
< Date: Sat, 03 Aug 2024 02:39:02 GMT
< Location: http://localhost:8080/environment/
< Content-Length: 0
<
* Connection #0 to host localhost left intact
```

- Some browser doesn't preserve all HTTP header information of the original PRs when it redirects.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs and do the manual test.

```
$ sbin/start-master.sh
```

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #47594 from dongjoon-hyun/SPARK-47894.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
1 parent aaf602a
History

README.md

back to top