We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07602c0 + 0185e6b commit 02cf3adCopy full SHA for 02cf3ad
http/src/network/protocol/http/message/wrappers/port.ipp
@@ -22,9 +22,9 @@ port_wrapper::operator boost:: uint16_t() const {
22
if (!optional_port) {
23
auto scheme_ = uri_.scheme();
24
assert(scheme_);
25
- if (*scheme_ == "http") {
+ if (scheme_->compare("http") == 0) {
26
return 80u;
27
- } else if (*scheme_ == "https") {
+ } else if (scheme_->compare("https") == 0) {
28
return 443u;
29
}
30
0 commit comments