diff options
author | m0gg | 2006-03-23 12:58:24 +0000 |
---|---|---|
committer | m0gg | 2006-03-23 12:58:24 +0000 |
commit | 6819be5cdf6dcdcb84604b87396f89c72a030ad7 (patch) | |
tree | eb9778cb9ec2574d549d085093739ffff2f6b732 /nanohttp/nanohttp-server.c | |
parent | 2750aed2da50deb7274f8d19b0671a136b81f857 (diff) | |
download | csoap-6819be5cdf6dcdcb84604b87396f89c72a030ad7.tar.gz csoap-6819be5cdf6dcdcb84604b87396f89c72a030ad7.tar.bz2 |
httpd_get_protocol function added
Diffstat (limited to 'nanohttp/nanohttp-server.c')
-rw-r--r-- | nanohttp/nanohttp-server.c | 8 |
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 |