| 600 | } |
| 601 | |
| 602 | std::string CreateBasicAuthorizationString (const std::string& user, const std::string& pass) |
| 603 | { |
| 604 | if (user.empty () && pass.empty ()) return ""; |
| 605 | return "Basic " + i2p::data::ToBase64Standard (user + ":" + pass); |
| 606 | } |
| 607 | |
| 608 | } // http |
| 609 | } // i2p |
no test coverage detected