We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5350ff commit 13fc469Copy full SHA for 13fc469
proxygen/lib/utils/ParseURL.cpp
@@ -202,10 +202,10 @@ void ParseURL::parseNonFully(bool strict) noexcept {
202
}
203
204
bool ParseURL::parseAuthority() noexcept {
205
- auto left = authority_.find("[");
206
- auto right = authority_.find("]");
+ auto left = authority_.find('[');
+ auto right = authority_.find(']');
207
208
- auto pos = authority_.find(":", right != std::string::npos ? right : 0);
+ auto pos = authority_.find(':', right != std::string::npos ? right : 0);
209
if (pos != std::string::npos) {
210
try {
211
port_ = folly::to<uint16_t>(
0 commit comments