[URGENT] Fix for simpleminer's MinerGate compatibility

Reconnection issues in invoke_request when hostname is not specified in the url.