mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
fix: Uri builder builds relative path into valid URI
This commit is contained in:
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- Fixed an issue in IcdUriBuilder where relative pathes were not being built into a valid URI.
|
||||||
|
|
||||||
## [15.2.0] - 2021-08-18
|
## [15.2.0] - 2021-08-18
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ namespace ICD.Common.Utils
|
|||||||
throw new ArgumentNullException("uri");
|
throw new ArgumentNullException("uri");
|
||||||
|
|
||||||
if (!uri.IsAbsoluteUri)
|
if (!uri.IsAbsoluteUri)
|
||||||
uri = new Uri(Uri.UriSchemeHttp + Uri.SchemeDelimiter + uri);
|
uri = new Uri(Uri.UriSchemeHttp + Uri.SchemeDelimiter + "localhost" + uri);
|
||||||
|
|
||||||
Fragment = uri.Fragment;
|
Fragment = uri.Fragment;
|
||||||
Host = uri.Host;
|
Host = uri.Host;
|
||||||
|
|||||||
Reference in New Issue
Block a user