fix check to use base64 encoding when CROSS_DOMAIN = 1

$response['mime'] is null when the conditional is run because a couple lines (line 634) above it $tmp = $response = null; sets $response to null.
Merge pull request #10 from jhewes/patch-1

fix check to use base64 encoding when CROSS_DOMAIN = 1