Use a redirect for update

This commit is contained in:
nicolas.dorier
2019-05-31 00:00:20 +09:00
parent c8c33245b8
commit 8379b07de0
2 changed files with 3 additions and 7 deletions

View File

@@ -324,7 +324,7 @@ namespace BTCPayServer.Controllers
case "analyze-psbt":
var name =
$"Send-{string.Join('_', vm.Outputs.Select(output => $"{output.Amount}->{output.DestinationAddress}{(output.SubtractFeesFromOutput ? "-Fees" : string.Empty)}"))}.psbt";
return RedirectToAction(nameof(WalletPSBT), new { walletId = walletId, psbt = psbt.PSBT.ToBase64(), FileName= name });
return RedirectToAction(nameof(WalletPSBT), new { walletId = walletId, psbt = psbt.PSBT.ToBase64(), FileName = name });
default:
return View(vm);
}