소스 검색

UI: Fix AuthListener error HTTP response body

derrod 4 년 전
부모
커밋
8c9bb3a84b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      UI/auth-listener.cpp

+ 2 - 1
UI/auth-listener.cpp

@@ -95,7 +95,8 @@ void AuthListener::NewConnection()
 			}
 
 			if (code.isEmpty()) {
-				auto data = QTStr("YouTube.Auth.NoCode");
+				auto data = responseTemplate.arg(
+					QTStr("YouTube.Auth.NoCode"));
 				socket->write(QT_TO_UTF8(data));
 				emit fail();
 			} else {