| 45 | |
| 46 | |
| 47 | void cHTTPConnection::SendNeedAuth(const AString & a_Realm) |
| 48 | { |
| 49 | AppendPrintf(m_OutgoingData, "HTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm=\"%s\"\r\nContent-Length: 0\r\n\r\n", a_Realm.c_str()); |
| 50 | m_HTTPServer.NotifyConnectionWrite(*this); |
| 51 | m_State = wcsRecvHeaders; |
| 52 | } |
| 53 | |
| 54 | |
| 55 |
no test coverage detected