mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
CapeChange: use dummy sink
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
549405ab2f
commit
3937819305
1 changed files with 2 additions and 3 deletions
|
|
@ -37,8 +37,7 @@
|
|||
#include "CapeChange.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "net/ByteArraySink.h"
|
||||
#include <net/DummySink.h>
|
||||
#include "net/RawHeaderProxy.h"
|
||||
|
||||
CapeChange::CapeChange(QString cape) : NetRequest(), m_capeId(cape)
|
||||
|
|
@ -62,7 +61,7 @@ CapeChange::Ptr CapeChange::make(QString token, QString capeId)
|
|||
auto up = makeShared<CapeChange>(capeId);
|
||||
up->m_url = QUrl("https://api.minecraftservices.com/minecraft/profile/capes/active");
|
||||
up->setObjectName(QString("BYTES:") + up->m_url.toString());
|
||||
up->m_sink.reset(new Net::ByteArraySink(new QByteArray()));
|
||||
up->m_sink.reset(new Net::DummySink());
|
||||
up->addHeaderProxy(std::make_unique<Net::RawHeaderProxy>(QList<Net::HeaderPair>{
|
||||
{ "Authorization", QString("Bearer %1").arg(token).toLocal8Bit() },
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue