Skip to content

Commit 2ad8092

Browse files
committed
Check for HTTP codes between 201 and 299
1 parent 8da0ea4 commit 2ad8092

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Core_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function () use ( $temp ) {
268268

269269
if ( 'nightly' !== $version ) {
270270
$md5_response = Utils\http_request( 'GET', $download_url . '.md5' );
271-
if ( 200 === $md5_response->status_code ) {
271+
if ( $md5_response->status_code >= 200 && $md5_response->status_code < 300 ) {
272272
$md5_file = md5_file( $temp );
273273

274274
if ( $md5_file === $md5_response->body ) {

0 commit comments

Comments
 (0)