aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command/self_update_command_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-18 00:48:06 +0900
committernsfisis <nsfisis@gmail.com>2026-07-18 00:48:06 +0900
commitaaf2b0175e1f5b78fcfaae5c6b413588f31bc9e6 (patch)
tree8f1b5f6eef24939d03e4fe5808f828b790813652 /crates/shirabe/tests/command/self_update_command_test.rs
parentccef521aa73e724d25c40e60ec3c08f2b0863e3b (diff)
downloadphp-shirabe-aaf2b0175e1f5b78fcfaae5c6b413588f31bc9e6.tar.gz
php-shirabe-aaf2b0175e1f5b78fcfaae5c6b413588f31bc9e6.tar.zst
php-shirabe-aaf2b0175e1f5b78fcfaae5c6b413588f31bc9e6.zip
fix(curl-downloader): unlink partial file on redirect-without-location failure
PHP's handleRedirect() throws a bare TransportException when the Location header is missing, and the caller's single catch block always unlinks the `~` partial file via rejectJob(). The Rust decide() loop splits each failure path into its own branch and had unlinked on every other one, but missed this branch, leaking the partial file. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/command/self_update_command_test.rs')
0 files changed, 0 insertions, 0 deletions