Skip to content

Commit

Permalink
fix: 401
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Feb 10, 2024
1 parent af1ba3b commit 52f2a97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const handler: ServerEndpointHandler = function handler(request: Http.ClientRequ
*/
const readOnlyMode = context.wiki.getTiddlerText('$:/info/tidgi/readOnlyMode') === 'yes';
if (readOnlyMode) {
response.writeHead(403);
response.writeHead(401);
response.end(`Don't sync back to readonly server.`, 'utf8');
return;
}
Expand Down

0 comments on commit 52f2a97

Please sign in to comment.