Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
removed need for X-Confirm-Delete header, which was abandoned by mozi…
Browse files Browse the repository at this point in the history
  • Loading branch information
allo- committed Apr 28, 2013
1 parent b944047 commit e3a2b07
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion weave/views/sync.py
Expand Up @@ -160,7 +160,6 @@ def storage(request, version, username, timestamp, col_name=None, wboid=None):
elif request.method == 'DELETE':
# FIXME: This is am mess, it needs better structure
if col_name is None and wboid is None:
assert request.META.has_key('X-Confirm-Delete'), "To remove all records for your user, please make sure to include a X-Confirm-Delete HTTP header in your DELTE request!"
Collection.on_site.filter(user=request.user).delete()
return weave_timestamp(timestamp)

Expand Down

0 comments on commit e3a2b07

Please sign in to comment.