Skip to content

Commit 0bac5ce

Browse files
author
Sebastiano Merlino
committed
Merge branch 'master' of https://github.com/etr/libhttpserver
Conflicts: src/webserver.cpp
2 parents beda1e3 + 3234567 commit 0bac5ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/webserver.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,8 +940,12 @@ int webserver::finalize_answer(MHD_Connection* connection, struct modded_request
940940
}
941941
mr->dhr->set_underlying_connection(connection);
942942
#ifdef DEBUG
943-
cout << "Using: " << found_endpoint->first.get_url_complete() << endl;
943+
if(found)
944+
cout << "Using: " << found_endpoint->first.get_url_complete() << endl;
945+
else
946+
cout << "Endpoint not found!" << endl;
944947
#endif //DEBUG
948+
945949
#ifdef WITH_PYTHON
946950
PyGILState_STATE gstate;
947951
if(PyEval_ThreadsInitialized())

0 commit comments

Comments
 (0)