Skip to content

Commit

Permalink
Allow all status codes between 200 and 299
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolindemann authored Apr 20, 2017
1 parent 7ab0a5e commit ea45639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chronos/HTTPRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void HTTPRequest::done(CURLcode res)

result->httpStatus = httpCode;

if(httpCode == 200)
if((httpCode >= 200) && (httpCode < 300))
{
result->status = JOBSTATUS_OK;
}
Expand Down

0 comments on commit ea45639

Please sign in to comment.