mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
re-enable auth; things are stable now
This commit is contained in:
parent
19db8456c8
commit
bbc6dda144
@ -1,5 +1,5 @@
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.1.60'
|
||||
ext.kotlin_version = '1.1.61'
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user