summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp/nanohttp-server.c')
-rw-r--r--nanohttp/nanohttp-server.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c
index 2063c9f..75784c9 100644
--- a/nanohttp/nanohttp-server.c
+++ b/nanohttp/nanohttp-server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-server.c,v 1.53 2006/03/07 16:20:37 m0gg Exp $
+* $Id: nanohttp-server.c,v 1.54 2006/03/23 12:58:24 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -288,6 +288,12 @@ httpd_get_port(void)
return _httpd_port;
}
+const char *
+httpd_get_protocol(void)
+{
+ return hssl_enabled() ? "https" : "http";
+}
+
/*
* -----------------------------------------------------
* FUNCTION: httpd_services