re-enable auth; things are stable now

This commit is contained in:
casey langen 2017-11-26 23:59:36 -08:00
parent 19db8456c8
commit bbc6dda144
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.1.60'
ext.kotlin_version = '1.1.61'
repositories {
jcenter()

View File

@ -334,7 +334,7 @@ int HttpServer::HandleRequest(
try {
if (method && std::string(method) == "GET") {
if (false && !isAuthenticated(connection, server->context)) {
if (!isAuthenticated(connection, server->context)) {
status = 401; /* unauthorized */
static const char* error = "unauthorized";
response = MHD_create_response_from_buffer(strlen(error), (void*)error, MHD_RESPMEM_PERSISTENT);