diff options
Diffstat (limited to 'src/daemon/session.c')
-rw-r--r-- | src/daemon/session.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/daemon/session.c b/src/daemon/session.c index 62e05edd..fc713137 100644 --- a/src/daemon/session.c +++ b/src/daemon/session.c | |||
@@ -282,7 +282,15 @@ MHD_parse_session_headers(struct MHD_Session * session) { | |||
282 | */ | 282 | */ |
283 | static struct MHD_Access_Handler * | 283 | static struct MHD_Access_Handler * |
284 | MHD_find_access_handler(struct MHD_Session * session) { | 284 | MHD_find_access_handler(struct MHD_Session * session) { |
285 | /* FIXME: do real lookup based on URI! */ | 285 | struct MHD_Access_Handler * pos; |
286 | |||
287 | pos = session->daemon->handlers; | ||
288 | while (pos != NULL) { | ||
289 | if (0 == strcmp(session->url, | ||
290 | pos->uri_prefix)) | ||
291 | return pos; | ||
292 | pos = pos->next; | ||
293 | } | ||
286 | return &session->daemon->default_handler; | 294 | return &session->daemon->default_handler; |
287 | } | 295 | } |
288 | 296 | ||