bins/ix: switch from sprunge to ix
This commit is contained in:
parent
d4df17e1b1
commit
a69511c02e
@ -21,16 +21,16 @@
|
|||||||
<$fh>;
|
<$fh>;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub sprunge {
|
sub ix {
|
||||||
my ($input) = @_;
|
my ($input) = @_;
|
||||||
my $url = "http://sprunge.us";
|
my $url = "http://ix.io";
|
||||||
my $form = [ sprunge => $input ];
|
my $form = [ 'f:1' => $input ];
|
||||||
my $resp = $http->post_form($url, $form)
|
my $resp = $http->post_form($url, $form)
|
||||||
or die "could not POST: $!";
|
or die "could not POST: $!";
|
||||||
$resp->{content};
|
$resp->{content};
|
||||||
}
|
}
|
||||||
|
|
||||||
my $input = slurp('STDIN');
|
my $input = slurp('STDIN');
|
||||||
my $url = sprunge($input);
|
my $url = ix($input);
|
||||||
print $url;
|
print $url;
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user