Add timeout and success callback to checkProxyTarget
Fix content-type matching