Browse Source

[Minor] Allow to get raw body of non processed messages

tags/2.7
Vsevolod Stakhov 3 years ago
parent
commit
5ce6a2d97f
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      src/lua/lua_task.c

+ 7
- 1
src/lua/lua_task.c View File

@@ -2546,7 +2546,13 @@ lua_task_get_rawbody (lua_State * L)
t->flags = 0;
}
else {
lua_pushnil (L);
/* Push body it it is there */
if (task->msg.len > 0 && task->msg.begin != NULL) {
lua_new_text (L, task->msg.begin, task->msg.len, FALSE);
}
else {
lua_pushnil (L);
}
}
}
else {

Loading…
Cancel
Save