MOBILE-453 Disable fails over http (fixing regression on merge)
MOBILE-453 Fix previous commits

rewrite to be else if ( ... ) as there's no point ( in this case ) for
going:
if {} else { if {} }
Merge pull request #16 from moodlehq/MOBILE-453

MOBILE-453 Disable fails over http (fixing regression on merge)