| 215 | } |
| 216 | |
| 217 | void HTTPReqHandler::SendRedirect(const std::string& address) |
| 218 | { |
| 219 | i2p::http::HTTPRes res; |
| 220 | res.code = 302; |
| 221 | res.add_header("Location", address); |
| 222 | res.add_header("Connection", "close"); |
| 223 | m_Response = res.to_string(); |
| 224 | boost::asio::async_write(*m_sock, boost::asio::buffer(m_Response), boost::asio::transfer_all(), |
| 225 | std::bind(&HTTPReqHandler::SentHTTPFailed, shared_from_this(), std::placeholders::_1)); |
| 226 | } |
| 227 | |
| 228 | bool HTTPReqHandler::ExtractAddressHelper(i2p::http::URL& url, std::string& jump, bool& confirm) |
| 229 | { |
nothing calls this directly
no test coverage detected