mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 04:44:08 +02:00
Merge pull request #1115 from birarda/assignment
have AC fail if script code is 4XX
This commit is contained in:
commit
ded5c957e7
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ void Agent::run() {
|
|||
// send a user agent since some servers will require it
|
||||
curl_easy_setopt(curlHandle, CURLOPT_USERAGENT, "libcurl-agent/1.0");
|
||||
|
||||
// make sure CURL fails on a 400 code
|
||||
curl_easy_setopt(curlHandle, CURLOPT_FAILONERROR, true);
|
||||
|
||||
qDebug() << "Downloading script at" << scriptURLString << "\n";
|
||||
|
||||
// blocking get for JS file
|
||||
|
|
Loading…
Reference in a new issue