Browse Source

Added basic header passing

Alois Mahdal (@azzgoat) 11 years ago
parent
commit
4a146301b1
2 changed files with 5 additions and 1 deletions
  1. 4
    0
      lib/SugarTrail/STM.pm
  2. 1
    1
      t/Repo.t

+ 4
- 0
lib/SugarTrail/STM.pm View File

@@ -70,6 +70,10 @@ sub generate_sts {
70 70
         }
71 71
     }
72 72
 
73
+    $sts->{meta}->{'Stm'} = $self->{stm};
74
+    $sts->{meta}->{'Stm Revision'} = $self->get_current_revision();
75
+    $sts->{meta}->{'Params'} = mkmymime($args);
76
+
73 77
     $sts->{lines} = \@lines;
74 78
     return $sts;
75 79
 }

+ 1
- 1
t/Repo.t View File

@@ -19,7 +19,7 @@ is($stm->parse_body(), 13, "parse_body() still returns 13");
19 19
 
20 20
 &helper::dmupp(stm=>$stm);
21 21
 
22
-my $sts = $stm->generate_sts({ proto => "imap" });
22
+my $sts = $stm->generate_sts({ proto => "imap", os => "wxx" });
23 23
 ok($sts,            "sts is true");
24 24
 &helper::dmupp(sts=>$sts);
25 25