Bug 176765 - XML-RPC does not support https

r=heikki
sr=darin


git-svn-id: svn://10.0.0.236/trunk@134787 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
samuel%sieb.net
2002-12-04 07:59:57 +00:00
parent 3f69e05a6f
commit a54f19257c

View File

@@ -20,9 +20,9 @@
/*
* nsXmlRpcClient XPCOM component
* Version: $Revision: 1.29 $
* Version: $Revision: 1.30 $
*
* $Id: nsXmlRpcClient.js,v 1.29 2002-12-04 07:26:02 samuel%sieb.net Exp $
* $Id: nsXmlRpcClient.js,v 1.30 2002-12-04 07:59:57 samuel%sieb.net Exp $
*/
/*
@@ -90,7 +90,7 @@ nsXmlRpcClient.prototype = {
// Note that we don't care what the scheme is otherwise.
// Should we care? POST works only on http and https..
if (!oURL.scheme) oURL.scheme = 'http';
if (oURL.scheme != 'http')
if ((oURL.scheme != 'http') && (oURL.scheme != 'https'))
throw Components.Exception('Only HTTP is supported');
this._serverUrl = oURL;