Add Keep-Alive header to TitleDB requests.

This commit is contained in:
Steven Smith 2016-07-31 18:44:05 -07:00
parent d8abb42a1c
commit ac4646613f

View File

@ -28,6 +28,7 @@ static Result task_populate_titledb_download(u32* downloadSize, void* buffer, u3
u32 responseCode = 0;
if(R_SUCCEEDED(res = httpcSetSSLOpt(&context, SSLCOPT_DisableVerify))
&& R_SUCCEEDED(res = httpcAddRequestHeaderField(&context, "User-Agent", userAgent))
&& R_SUCCEEDED(res = httpcAddRequestHeaderField(&context, "Connection", "Keep-Alive"))
&& R_SUCCEEDED(res = httpcBeginRequest(&context))
&& R_SUCCEEDED(res = httpcGetResponseStatusCode(&context, &responseCode))) {
if(responseCode == 200) {