Skip to content

Commit

Permalink
Fixed issue when making HTTP requests in tests using partial URL paths
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jan 31, 2025
1 parent dc33c50 commit 082ce20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v1.4.3 - 2025-01-31

### Fixed

- Fixed issue when making HTTP requests in tests using partial URL paths.

## v1.4.2 - 2025-01-28

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/testing/class-pending-testable-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function call( string $method, mixed $uri, array $parameters = [], array
if ( '/' === $uri[0] ) {
$url = "{$scheme}://{$host}{$uri}";
} elseif ( false === strpos( $uri, '://' ) ) {
$url = "{$scheme}://{$host}/{uri}";
$url = "{$scheme}://{$host}/{$uri}";
} else {
$url = $uri;
}
Expand Down

0 comments on commit 082ce20

Please sign in to comment.