7y-9 and GitHub
38a47d1dd3
fix(http): check delete request errors before auth ( #9784 )
...
Explain:
- problem: Delete and DeleteProxied could panic on malformed URLs when a JWT was provided.
- root cause: maybeAddAuth was called before checking the error returned by http.NewRequest, so req could be nil.
- fix: return the request construction error before adding the Authorization header.
- validation: go test ./weed/util/http -run 'TestDelete(ReturnsInvalidRequestErrorBeforeAddingAuth|ProxiedReturnsInvalidRequestErrorBeforeAddingAuth)' -count=1; git diff --check
2026-06-02 00:41:17 -07:00
..
2026-05-10 13:34:25 -07:00
2024-05-05 12:20:08 -07:00
2026-05-08 13:12:11 -07:00
2026-04-10 17:31:14 -07:00
2026-04-16 16:11:01 -07:00
2026-06-02 00:41:17 -07:00
2026-04-21 20:20:11 -07:00
2026-05-12 12:36:16 -07:00
2026-01-07 13:06:08 -08:00
2026-04-26 16:31:53 -07:00
2026-03-06 15:22:39 -08:00
2026-05-21 02:30:49 -07:00
2025-09-09 01:01:03 -07:00
2026-06-01 23:32:04 -07:00
2026-02-27 12:22:21 -08:00
2026-02-10 18:38:38 -08:00
2026-02-10 18:38:38 -08:00
2026-05-27 11:29:01 -07:00
2025-07-02 18:03:49 -07:00
2025-10-31 12:49:04 -07:00
2026-02-20 18:42:00 -08:00
2026-02-20 18:42:00 -08:00
2026-02-20 18:42:00 -08:00
2026-02-20 18:42:00 -08:00
2026-04-16 09:38:42 -07:00
2026-04-16 09:38:42 -07:00
2026-04-16 09:38:42 -07:00
2026-02-20 18:42:00 -08:00
2026-02-20 18:42:00 -08:00
2026-05-03 21:46:21 -07:00
2026-05-03 21:46:21 -07:00
2026-04-23 19:17:35 -07:00
2026-04-23 19:17:35 -07:00
2026-01-07 13:06:08 -08:00
2026-03-19 16:08:24 -07:00
2026-04-03 16:04:27 -07:00
2026-02-19 13:30:59 -08:00
2025-12-04 18:31:46 -08:00
2026-02-12 18:11:03 -08:00
2025-01-22 00:48:55 -08:00
2025-12-30 14:28:50 -08:00
2025-12-30 14:28:50 -08:00
2026-01-07 13:06:08 -08:00
2024-12-19 19:25:06 -08:00
2026-03-08 16:05:45 -07:00
2026-03-08 16:05:45 -07:00
2026-04-16 10:18:05 -07:00
2026-04-16 10:18:05 -07:00
2026-03-01 10:22:00 -08:00
2024-10-31 08:40:05 -07:00