summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index 3973756..6474fb5 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -54,13 +54,18 @@ public:
headers_t &headers)
{
std::string sessionid;
+ std::string patientid;
+ std::string templ;
if(headers.contains("SessionID")) sessionid = headers["SessionID"];
+ if(headers.contains("SessionPatientID"))
+ patientid = headers["SessionPatientID"];
+ if(headers.contains("SessionTemplate")) templ = headers["SessionTemplate"];
bool commit = headers.contains("SessionCommit");
bool nocommit = headers.contains("SessionNoCommit");
bool discard = headers.contains("SessionDiscard");
- Connection *connection = new Connection(env, sessionid,
+ Connection *connection = new Connection(env, sessionid, patientid, templ,
commit, discard, nocommit);
return connection;