Skip to content

Commit

Permalink
fix key_name
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Sep 3, 2019
1 parent 76e1cb7 commit f1e270d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SyTest/Identity/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ sub on_request
) {
is_valid( $self, $req );
}
elsif( $key_name = $path =~ m#^/_matrix/identity/api/v1/pubkey/([^/]*)$# ) {
elsif( ( $key_name ) = $path =~ m#^/_matrix/identity/api/v1/pubkey/([^/]*)$# ) {
pubkey( $self, $req, $key_name );
}
elsif( $key_name = $path =~ m#^/_matrix/identity/v2/pubkey/([^/]*)$# ) {
elsif( ( $key_name ) = $path =~ m#^/_matrix/identity/v2/pubkey/([^/]*)$# ) {
check_v2( $req );
pubkey( $self, $req, $key_name );
}
Expand Down

0 comments on commit f1e270d

Please sign in to comment.