Network/WebRequest: Fix missing option handling

That part belongs to f1de6f9198 but was not commited
This commit is contained in:
SirLynix 2024-01-16 15:21:42 +01:00
parent e355144bb6
commit c8e07b3f3f
1 changed files with 6 additions and 0 deletions

View File

@ -193,6 +193,12 @@ namespace Nz
libcurl.easy_setopt(m_curlHandle, CURLOPT_XFERINFOFUNCTION, progressCallback);
}
if (m_options.Test(WebRequestOption::FailOnError))
libcurl.easy_setopt(m_curlHandle, CURLOPT_FAILONERROR, long(1));
if (m_options.Test(WebRequestOption::FollowRedirects))
libcurl.easy_setopt(m_curlHandle, CURLOPT_FOLLOWLOCATION, long(1));
return m_curlHandle;
}
#else