From a69511c02e6c8a68bb63242d324e9ee669faff9a Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 12 Oct 2023 08:06:55 -0600 Subject: [PATCH] bins/ix: switch from sprunge to ix --- bins/ix.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bins/ix.nix b/bins/ix.nix index ad8da16..dcb3e55 100644 --- a/bins/ix.nix +++ b/bins/ix.nix @@ -21,16 +21,16 @@ <$fh>; } - sub sprunge { + sub ix { my ($input) = @_; - my $url = "http://sprunge.us"; - my $form = [ sprunge => $input ]; + my $url = "http://ix.io"; + my $form = [ 'f:1' => $input ]; my $resp = $http->post_form($url, $form) or die "could not POST: $!"; $resp->{content}; } my $input = slurp('STDIN'); - my $url = sprunge($input); + my $url = ix($input); print $url; ''