aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2022-01-16 12:46:20 +0100
committerPetr Mrázek <peterix@gmail.com>2022-01-16 12:46:20 +0100
commitaa770b63fba8ede60636c6c2473a20d4fe48d3a1 (patch)
treec91a333225ed40a0f7788ac849a64e5b581cff52
parentc1bf31cb27a2b0ac675d70b6204003c1d834bbf8 (diff)
downloadPrismLauncher-aa770b63fba8ede60636c6c2473a20d4fe48d3a1.tar.gz
PrismLauncher-aa770b63fba8ede60636c6c2473a20d4fe48d3a1.tar.bz2
PrismLauncher-aa770b63fba8ede60636c6c2473a20d4fe48d3a1.zip
NOISSUE correctly set http status code in auth reply
-rw-r--r--launcher/minecraft/auth/AuthRequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/auth/AuthRequest.cpp b/launcher/minecraft/auth/AuthRequest.cpp
index 459d2354..feface80 100644
--- a/launcher/minecraft/auth/AuthRequest.cpp
+++ b/launcher/minecraft/auth/AuthRequest.cpp
@@ -44,7 +44,7 @@ void AuthRequest::onRequestFinished() {
if (reply_ != qobject_cast<QNetworkReply *>(sender())) {
return;
}
- httpStatus_ = 200;
+ httpStatus_ = reply_->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
finish();
}