use api.wakatime.com for sending heartbeats

This commit is contained in:
Alan Hamlett 2016-01-06 13:48:18 -08:00
parent 23dc803446
commit 1f7f2fc666

View file

@ -291,7 +291,7 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None,
"""
if not api_url:
api_url = 'https://wakatime.com/api/v1/heartbeats'
api_url = 'https://api.wakatime.com/api/v1/heartbeats'
if not timeout:
timeout = 30
log.debug('Sending heartbeat to api at %s' % api_url)