From b1fe4c85d38b4ee3335ecdecfab02c172a9dabb3 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Thu, 23 Apr 2026 02:28:12 +0200 Subject: [PATCH] fix sending decks to tappedout (#6832) --- .../src/client/network/interfaces/tapped_out_interface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/client/network/interfaces/tapped_out_interface.cpp b/cockatrice/src/client/network/interfaces/tapped_out_interface.cpp index a30a7f531..af377d176 100644 --- a/cockatrice/src/client/network/interfaces/tapped_out_interface.cpp +++ b/cockatrice/src/client/network/interfaces/tapped_out_interface.cpp @@ -89,6 +89,8 @@ void TappedOutInterface::analyzeDeck(const DeckList &deck) QNetworkRequest request(QUrl("https://tappedout.net/mtg-decks/paste/")); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded"); request.setHeader(QNetworkRequest::UserAgentHeader, QString("Cockatrice %1").arg(VERSION_STRING)); + // we interpret the redirect and open it in the browser instead, do not follow redirects + request.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::ManualRedirectPolicy); manager->post(request, data); }