| 108 | } |
| 109 | |
| 110 | void HTTPServerResponse::requireAuthentication(const std::string & realm) |
| 111 | { |
| 112 | poco_assert(!stream); |
| 113 | |
| 114 | setStatusAndReason(HTTPResponse::HTTP_UNAUTHORIZED); |
| 115 | std::string auth("Basic realm=\""); |
| 116 | auth.append(realm); |
| 117 | auth.append("\""); |
| 118 | set("WWW-Authenticate", auth); |
| 119 | } |
| 120 | |
| 121 | } |
no test coverage detected