Skip to content

Commit 082ce20

Browse files
committed
Fixed issue when making HTTP requests in tests using partial URL paths
1 parent dc33c50 commit 082ce20

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v1.4.3 - 2025-01-31
9+
10+
### Fixed
11+
12+
- Fixed issue when making HTTP requests in tests using partial URL paths.
13+
814
## v1.4.2 - 2025-01-28
915

1016
### Fixed

src/mantle/testing/class-pending-testable-request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function call( string $method, mixed $uri, array $parameters = [], array
245245
if ( '/' === $uri[0] ) {
246246
$url = "{$scheme}://{$host}{$uri}";
247247
} elseif ( false === strpos( $uri, '://' ) ) {
248-
$url = "{$scheme}://{$host}/{uri}";
248+
$url = "{$scheme}://{$host}/{$uri}";
249249
} else {
250250
$url = $uri;
251251
}

0 commit comments

Comments
 (0)