From c28e56819cf8975ce34a7d842969721f0e673dda Mon Sep 17 00:00:00 2001 From: Alberto Massari <amassari@apache.org> Date: Tue, 8 May 2007 09:05:14 +0000 Subject: [PATCH] Add https to the list of valid protocols for XMLURL (XERCESC-1698) git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@536133 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/XMLURL.cpp | 6 ++++++ src/xercesc/util/XMLURL.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/src/xercesc/util/XMLURL.cpp b/src/xercesc/util/XMLURL.cpp index 687e5e5eb..f8029bf37 100644 --- a/src/xercesc/util/XMLURL.cpp +++ b/src/xercesc/util/XMLURL.cpp @@ -88,11 +88,17 @@ static const XMLCh gHTTPString[] = chLatin_h, chLatin_t, chLatin_t, chLatin_p, chNull }; +static const XMLCh gHTTPSString[] = +{ + chLatin_h, chLatin_t, chLatin_t, chLatin_p, chLatin_s, chNull +}; + static ProtoEntry gProtoList[XMLURL::Protocols_Count] = { { XMLURL::File , gFileString , 0 } , { XMLURL::HTTP , gHTTPString , 80 } , { XMLURL::FTP , gFTPString , 21 } + , { XMLURL::HTTPS , gHTTPSString , 443 } }; // !!! Keep these up to date with list above! diff --git a/src/xercesc/util/XMLURL.hpp b/src/xercesc/util/XMLURL.hpp index d11d0022b..e60c7dc45 100644 --- a/src/xercesc/util/XMLURL.hpp +++ b/src/xercesc/util/XMLURL.hpp @@ -46,6 +46,7 @@ public: File , HTTP , FTP + , HTTPS , Protocols_Count , Unknown -- GitLab