File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 1
1
var webPush = require ( '../index' ) ;
2
- var https = require ( 'https ' ) ;
2
+ var http = require ( 'http ' ) ;
3
3
var fs = require ( 'fs' ) ;
4
4
var path = require ( 'path' ) ;
5
5
var colors = require ( 'colors' ) ;
@@ -11,15 +11,8 @@ if (!process.env.GCM_API_KEY) {
11
11
webPush . setGCMAPIKey ( process . env . GCM_API_KEY ) ;
12
12
}
13
13
14
- var pem = fs . readFileSync ( 'test/cert.pem' ) ;
15
-
16
- var options = {
17
- key : pem ,
18
- cert : pem ,
19
- } ;
20
-
21
14
function createServer ( pushPayload , vapid ) {
22
- var server = https . createServer ( options , function ( req , res ) {
15
+ var server = http . createServer ( function ( req , res ) {
23
16
if ( req . method === 'GET' ) {
24
17
if ( req . url === '/' ) {
25
18
req . url = '/index.html' ;
Original file line number Diff line number Diff line change @@ -77,16 +77,16 @@ suite('selenium', function() {
77
77
if ( typeof netscape !== 'undefined' ) {
78
78
netscape . security . PrivilegeManager . enablePrivilege ( 'UniversalXPConnect' ) ;
79
79
Components . utils . import ( 'resource://gre/modules/Services.jsm' ) ;
80
- var uri = Services . io . newURI ( 'https ://127.0.0.1:' + port , null , null ) ;
80
+ var uri = Services . io . newURI ( 'http ://127.0.0.1:' + port , null , null ) ;
81
81
var principal = Services . scriptSecurityManager . getNoAppCodebasePrincipal ( uri ) ;
82
82
Services . perms . addFromPrincipal ( principal , 'desktop-notification' , Services . perms . ALLOW_ACTION ) ;
83
83
}
84
84
} , server . port ) ;
85
85
86
- driver . get ( 'https ://127.0.0.1:' + server . port ) ;
86
+ driver . get ( 'http ://127.0.0.1:' + server . port ) ;
87
87
88
88
driver . executeScript ( function ( port ) {
89
- serverAddress = 'https ://127.0.0.1:' + port ;
89
+ serverAddress = 'http ://127.0.0.1:' + port ;
90
90
go ( ) ;
91
91
} , server . port ) ;
92
92
You can’t perform that action at this time.
0 commit comments