Change it to take the whole NCIP request as its argument.
Signed-off-by: Jason Stephenson <jason@sigio.com>
# Other methods, just because.
+# Handle a LookupVersion Request. You probably want to just call this
+# one from your subclasses rather than reimplement it.
sub lookupversion {
}
# NCIP::Header.
sub make_header {
my $self = shift;
- my $initheader = shfit;
+ my $request = shift;
+ my $initheader;
my $header;
+ for my $key (keys %$request) {
+ if ($request->{$key}->{InitiationHeader}) {
+ $initheader = $request->{$key}->{InitiationHeader};
+ last;
+ }
+ }
+
if ($initheader && $initheader->{FromAgencyId}
&& $initheader->{ToAgencyId}) {
$header = NCIP::Header->new(