]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Headers.pm
add() alis to push() in Mp::Headers - bug 14142
[maypole.git] / lib / Maypole / Headers.pm
index 33edc1bbedb70dd90fc1be22c8ebf5992080a0b3..320cb0541841aaa4fe1b0f96127f919cb84b6998 100644 (file)
@@ -14,6 +14,8 @@ sub set {
     shift->header(@_);
 }
 
+*add = \&push; # useful for Apache::Session::Wrapper support
+
 sub push {
     shift->push_header(@_);
 }
@@ -84,6 +86,10 @@ Add a value to the field named C<$header>. Previous values are maintained.
 
 An alias to C<HTTP::Headers-E<gt>push_header>
 
+=item add
+
+Alias to C<push> - useful for C<Apache::Session::Wrapper> support, in CGI mode.
+
 =item init($header =C<gt> $value)
 
 Set the value for the field named C<$header>, but only if that header is