Skip to content

Commit b6006ea

Browse files
committed
Maintenance flag fixed for returning the relevant JSON-RPC Identifier
1 parent ca7e88b commit b6006ea

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

rls/API.Library.dll

0 Bytes
Binary file not shown.

rls/API.Library.pdb

2 KB
Binary file not shown.

src/API.Library/Entities/JSONRPC.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,16 @@ public void ProcessRequest(HttpContext context)
135135
// Set CacheControl to no-cache
136136
context.Response.CacheControl = "no-cache";
137137

138+
// Deserialize and parse the JSON request into an Object dynamically
139+
JSONRPC_Request JSONRPC_Request = this.ParseRequest(ref context);
140+
138141
// Check for the maintenance flag
139142
if (maintenance)
140143
{
141-
JSONRPC_Error error = new JSONRPC_Error { code = -32001, data = "The system is currently under maintenance. \r\nPlease try again later." };
142-
this.ParseError(ref context, null, error);
144+
JSONRPC_Error error = new JSONRPC_Error { code = -32001, data = "The system is currently under maintenance." };
145+
this.ParseError(ref context, JSONRPC_Request.id, error);
143146
}
144147

145-
// Deserialize and parse the JSON request into an Object dynamically
146-
JSONRPC_Request JSONRPC_Request = this.ParseRequest(ref context);
147-
148148
// Authenticate and append credentials to the JSON request
149149
this.Authenticate(ref context, ref JSONRPC_Request);
150150

0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)