Browse Source

Added support for iterator to htlogr.pm

Alois Mahdal 12 years ago
parent
commit
9f4aa2e23f
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/htlogr.pm

+ 3
- 1
lib/htlogr.pm View File

@@ -40,10 +40,12 @@ sub log {
40 40
     my $self    = shift;
41 41
     my $msg     = shift;
42 42
     my $tag     = shift;
43
+    my $i       = shift;
43 44
     my $uri;
44 45
     $uri .= $self->{path};
45 46
     $uri .= "?msg=" . uri_escape($msg);
46
-    $uri .= "&tag=" . uri_escape($tag)    if $tag;
47
+    $uri .= "&tag=" . uri_escape($tag)  if $tag;
48
+    $uri .= "&i="   . uri_escape($i)    if $i;
47 49
     $self->{http}->request($uri) or croak("could not htlog message: $!");
48 50
     return $self->{http}->body();
49 51
 }