kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit be70118bf2fd91b9275d0eee12904015420aa261
parent 46127459d949ae1e4371400ef5b8678b18b5ff91
Author: Joris Vink <joris@coders.se>
Date:   Fri, 27 Sep 2019 12:33:48 +0200

move l->tls check upwards

Diffstat:
src/python.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -1377,6 +1377,7 @@ python_kore_listen(PyObject *self, PyObject *args, PyObject *kwargs) } l = kore_listener_create(name); + python_bool_from_dict(kwargs, "tls", &l->tls); if (ip != NULL) { if ((port = python_string_from_dict(kwargs, "port")) == NULL) { @@ -1399,8 +1400,6 @@ python_kore_listen(PyObject *self, PyObject *args, PyObject *kwargs) } } - python_bool_from_dict(kwargs, "tls", &l->tls); - Py_RETURN_NONE; }