Refactor check_ok()
Refactor check_ok()

Instead of passing in a req_t and setting the value of the ok field inside the
function, just pass in the code and return yes or no. (Fixes #29)

mossberg/librequests