Skip to content

Commit

Permalink
fix: Http response for Competitive Companion
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Dec 17, 2024
1 parent 806ef5d commit ab14534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RedPandaIDE/problems/competitivecompenionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ void CompetitiveCompanionThread::onNewProblemConnection(QTcpSocket* clientConnec
content += readed;
}
content += clientConnection->readAll();
clientConnection->write("HTTP/1.1 200 OK");
clientConnection->write("HTTP/1.1 200 OK\n");
clientConnection->write("Connection: close\n");
clientConnection->disconnectFromHost();
// qDebug()<<"---------";
// qDebug()<<content;
Expand Down

0 comments on commit ab14534

Please sign in to comment.