Network/WebRequest: Fix missing option handling
That part belongs to f1de6f9198 but was not commited
This commit is contained in:
parent
e355144bb6
commit
c8e07b3f3f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue