Skip to content

Commit 0ab8df5

Browse files
committed
simplify check
1 parent 2478993 commit 0ab8df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/rest/class-server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ public static function authorize_activitypub_requests( $response, $handler, $req
9090
}
9191

9292
// POST-Requets are always signed
93-
if ( 'get' !== \strtolower( $request->get_method() ) ) {
93+
if ( 'GET' !== $request->get_method() ) {
9494
$verified_request = Signature::verify_http_signature( $request );
9595
if ( \is_wp_error( $verified_request ) ) {
9696
return $verified_request;
9797
}
98-
} elseif ( 'get' === \strtolower( $request->get_method() ) ) { // GET-Requests are only signed in secure mode
98+
} elseif ( 'GET' === $request->get_method() ) { // GET-Requests are only signed in secure mode
9999
if ( ACTIVITYPUB_AUTHORIZED_FETCH ) {
100100
$verified_request = Signature::verify_http_signature( $request );
101101
if ( \is_wp_error( $verified_request ) ) {

0 commit comments

Comments
 (0)