Merge pull request #1115 from birarda/assignment

have AC fail if script code is 4XX
This commit is contained in:
Philip Rosedale 2013-10-24 16:47:53 -07:00
commit ded5c957e7

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