Skip to content

Commit 281583c

Browse files
committed
[http] fix ssl_certificate handling
In the documentation "ssl_certificate" URL parameter was mentioned, but in fact "ssl_cert" was used. Now handle both URL parameters to be compatible with previousely published docu.
1 parent bd53697 commit 281583c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

net/http/src/TCivetweb.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ Int_t TCivetweb::ChangeNumActiveThrerads(int cnt)
603603
///
604604
/// thrds=N - there N is number of threads used by the civetweb (default is 10)
605605
/// top=name - configure top name, visible in the web browser
606-
/// ssl_certificate=filename - SSL certificate, see docs/OpenSSL.md from civetweb
606+
/// ssl_cert=filename - SSL certificate, see docs/OpenSSL.md from civetweb
607607
/// auth_file=filename - authentication file name, created with htdigets utility
608608
/// auth_domain=domain - authentication domain
609609
/// websocket_timeout=tm - set web sockets timeout in seconds (default 300)
@@ -685,7 +685,9 @@ Bool_t TCivetweb::Create(const char *args)
685685
if (adomain)
686686
auth_domain = adomain;
687687

688-
const char *sslc = url.GetValueFromOptions("ssl_cert");
688+
const char *sslc = url.GetValueFromOptions("ssl_certificate");
689+
if (!sslc)
690+
sslc = url.GetValueFromOptions("ssl_cert");
689691
if (sslc)
690692
ssl_cert = sslc;
691693

0 commit comments

Comments
 (0)