diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 18:54:14 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 20:56:39 +0900 |
| commit | 9d294741fd1bb469ed6be4e46af2f6521ce75054 (patch) | |
| tree | 4f0f839678bd5191a9bb941a9240f588da6b9879 /src/uri.cc | |
| parent | e2340efe2788648a6edc49eaa236e1f62d96a937 (diff) | |
Rewritten FeatureConfig into set of functions
Diffstat (limited to 'src/uri.cc')
| -rw-r--r-- | src/uri.cc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -131,8 +131,7 @@ bool parse(UriStruct& result, const std::string& uri) if(protocolOffset == std::string::npos) return false; result.protocol.assign(uri.begin(), uri.begin()+protocolOffset); uint16_t defPort; - if((defPort = FeatureConfig::getInstance()-> - getDefaultPort(result.protocol)) == 0) { + if((defPort = getDefaultPort(result.protocol)) == 0) { return false; } // find authority @@ -268,8 +267,7 @@ std::string construct(const UriStruct& us) } else { res += us.host; } - uint16_t defPort= FeatureConfig::getInstance()-> - getDefaultPort(us.protocol); + uint16_t defPort= getDefaultPort(us.protocol); if(us.port != 0 && defPort != us.port) { res += fmt(":%u", us.port); } |
