diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-20 09:34:21 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-20 09:34:21 -0500 |
| commit | bb9af1fde25f5c2b4feeaa474392797ae5c4599d (patch) | |
| tree | b9a3228913de5872bf411d1dfc4fc1e3a1f2df4d /dev/lib/net | |
| parent | 3bc2fca2c9beff13586b8bf3089ce439acb09de1 (diff) | |
feat: ChunkString: Linux fixes and improved unit test.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/net')
| -rw-r--r-- | dev/lib/net/url.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/lib/net/url.hpp b/dev/lib/net/url.hpp index e4eca2a..e5f6803 100644 --- a/dev/lib/net/url.hpp +++ b/dev/lib/net/url.hpp @@ -41,17 +41,17 @@ namespace ocl::net if (protocol.starts_with("https://")) { m_protocol_ = url_protocol::https; - this->operator/=(protocol.substr(strlen("https://"))); + this->operator/=(protocol.substr(std::size("https://"))); } else if (protocol.starts_with("http://")) { m_protocol_ = url_protocol::http; - this->operator/=(protocol.substr(strlen("http://"))); + this->operator/=(protocol.substr(std::size("http://"))); } else if (protocol.starts_with("mailto:")) { m_protocol_ = url_protocol::mailto; - this->operator/=(protocol.substr(strlen("mailto:"))); + this->operator/=(protocol.substr(std::size("mailto:"))); } } |
