summaryrefslogtreecommitdiff
path: root/cgi/shorten.pl
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/shorten.pl')
-rwxr-xr-xcgi/shorten.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgi/shorten.pl b/cgi/shorten.pl
index b3b4ff8..b87bfc2 100755
--- a/cgi/shorten.pl
+++ b/cgi/shorten.pl
@@ -109,7 +109,10 @@ my $url=$q->param('url');
if ($url) {
my $str=shorten($url);
- say $q->header(-type=>'text/plain'),
+ say $q->header(
+ -type => 'text/plain',
+ -charset => 'utf-8',
+ ),
'http://',$q->virtual_host,'/',$str;
}
else {