| 667 | } |
| 668 | |
| 669 | void Server::SendHttpSeeOther(struct mg_connection* connection, |
| 670 | const struct mg_request_info* request_info, |
| 671 | const std::string& location) { |
| 672 | LOG(TRACE) << "Entering Server::SendHttpSeeOther"; |
| 673 | |
| 674 | std::ostringstream out; |
| 675 | out << "HTTP/1.1 303 See Other\r\n" |
| 676 | << "Location: " << location << "\r\n" |
| 677 | << "Content-Type: text/html\r\n" |
| 678 | << "Content-Length: 0\r\n\r\n"; |
| 679 | |
| 680 | mg_write(connection, out.str().c_str(), out.str().size()); |
| 681 | } |
| 682 | |
| 683 | std::string Server::LookupCommand(const std::string& uri, |
| 684 | const std::string& http_verb, |
no test coverage detected