fix check!

This commit is contained in:
Matthias Pfefferle 2023-08-10 15:10:07 +02:00
parent fcc9603920
commit 1fd0cca185

View file

@ -52,7 +52,7 @@ class Http {
$response = \wp_safe_remote_post( $url, $args );
$code = \wp_remote_retrieve_response_code( $response );
if ( 400 <= $code && 500 >= $code ) {
if ( $code <= 400 ) {
$response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) );
}
@ -100,7 +100,7 @@ class Http {
$response = \wp_safe_remote_get( $url, $args );
$code = \wp_remote_retrieve_response_code( $response );
if ( 400 <= $code && 500 >= $code ) {
if ( $code <= 400 ) {
$response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) );
}