Skip to content

Commit 02cf3ad

Browse files
committed
Merge branch 'master' into http-server-rewrite
2 parents 07602c0 + 0185e6b commit 02cf3ad

File tree

1 file changed

+2
-2
lines changed
  • http/src/network/protocol/http/message/wrappers

1 file changed

+2
-2
lines changed

http/src/network/protocol/http/message/wrappers/port.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ port_wrapper::operator boost:: uint16_t() const {
2222
if (!optional_port) {
2323
auto scheme_ = uri_.scheme();
2424
assert(scheme_);
25-
if (*scheme_ == "http") {
25+
if (scheme_->compare("http") == 0) {
2626
return 80u;
27-
} else if (*scheme_ == "https") {
27+
} else if (scheme_->compare("https") == 0) {
2828
return 443u;
2929
}
3030
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy