Merge pull request #49 from RetroShare/master

upate to master
This commit is contained in:
defnax 2020-01-22 21:51:05 +01:00 committed by GitHub
commit 1da4b330b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -417,7 +417,7 @@ void JsonApiServer::registerHandler(
if(!rsLoginHelper->isLoggedIn())
{
session->close(rb::CONFLICT);
session->close(rb::CONFLICT, corsOptionsHeaders);
return;
}
@ -429,7 +429,7 @@ void JsonApiServer::registerHandler(
if(authToken != "Basic")
{
session->close(rb::UNAUTHORIZED);
session->close(rb::UNAUTHORIZED, corsOptionsHeaders);
return;
}
@ -437,7 +437,7 @@ void JsonApiServer::registerHandler(
authToken = decodeToken(authToken);
if(isAuthTokenValid(authToken)) callback(session);
else session->close(rb::UNAUTHORIZED);
else session->close(rb::UNAUTHORIZED, corsOptionsHeaders);
} );
mResources.push_back(resource);

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1139</width>
<height>1171</height>
<width>600</width>
<height>400</height>
</rect>
</property>
<property name="windowTitle">