make sure the AC fails if script code is 4XX

This commit is contained in:
Stephen Birarda 2013-10-24 16:42:47 -07:00
parent f8369ea29a
commit b64d7b967d

View file

@ -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