mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
Add Keep-Alive header to TitleDB requests.
This commit is contained in:
parent
d8abb42a1c
commit
ac4646613f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user