Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
c9fc7a13
Commit
c9fc7a13
authored
Mar 30, 2016
by
Sergey Lyubka
Committed by
rojer
Apr 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix JSON-RPC error formatting
PUBLISHED_FROM=9af7e0a2a90fab6e012174c154f62ee29c8b879c
parent
5f59b7e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
c9fc7a13
...
...
@@ -8152,8 +8152,8 @@ int mg_rpc_create_error(char *buf, int len, struct mg_rpc_request *req,
n
+=
json_emit
(
buf
+
n
,
len
-
n
,
"{s:s,s:V,s:{s:i,s:s,s:"
,
"jsonrpc"
,
"2.0"
,
"id"
,
req
->
id
==
NULL
?
"null"
:
req
->
id
->
ptr
,
req
->
id
==
NULL
?
4
:
req
->
id
->
len
,
"error"
,
"code"
,
code
,
"message"
,
message
,
"data"
);
req
->
id
==
NULL
?
4
:
req
->
id
->
len
,
"error"
,
"code"
,
(
long
)
code
,
"message"
,
message
,
"data"
);
va_start
(
ap
,
fmt
);
n
+=
json_emit_va
(
buf
+
n
,
len
-
n
,
fmt
,
ap
);
va_end
(
ap
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment