Permalink
Browse files

Change the way we do purging by key

  • Loading branch information...
1 parent d4433ad commit 149ed319ea8bf7b1885bd79c11cc8fdc8864d071 @simonwistow simonwistow committed Feb 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Net/Fastly/Service.pm
View
2 lib/Net/Fastly/Service.pm
@@ -101,7 +101,7 @@ Purge anything with the specific key from the given service.
sub purge_by_key {
my $self = shift;
my $key = shift;
- $self->_fetcher->client->_post("/key_purge/$key", service_id => $self->id );
+ return $self->_fetcher->client->_put($self->_get_path($self->id)."/purge/$key");
}
=head2 versions

0 comments on commit 149ed31

Please sign in to comment.