Skip to content

Commit

Permalink
Don't purge the root on RTD :x
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Jun 30, 2011
1 parent 0eec9f4 commit 311e9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/projects/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def purge_version(version, mainsite=False, subdomain=False, cname=False):
to_purge = "http://%s%s" % (server, url)
print "Purging %s on readthedocs.org" % url
ret = h.request(to_purge, method="PURGE", headers=headers)
root_url = "/"
root_url = "/docs/%s/" % version.project.slug
to_purge = "http://%s%s" % (server, root_url)
print "Purging %s on readthedocs.org" % root_url
ret2 = h.request(to_purge, method="PURGE", headers=headers)
Expand Down

0 comments on commit 311e9c0

Please sign in to comment.