Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed several RegEx issues in _debugger.js which allowed users to inp…

…ut non-valid commands, resulting in confusing behaviour.
  • Loading branch information...
commit 42058109f498f5c8d7ffe5ab8e54e29c15b57ea5 1 parent 10e96c1
Siddharth Mahendraker authored
Showing with 0 additions and 64 deletions.
  1. +0 −33 test/test-http-bug.js
  2. +0 −31 test/test-supersimple.js
View
33 test/test-http-bug.js
@@ -1,33 +0,0 @@
-var http = require('http');
-
-var options1 = {
-host: 'localhost',
-port: 80,
-path: '/',
-method: 'GET'
-};
-
-http.createServer(function (req, res) {
-
- var start = new Date();
- var myCounter = 0;
- debugger;
-
- var isSent = false;
- http.request(options1, function(response) {
- response.setEncoding('utf8');
- debugger;
- response.on('data', function (chunk) {
- var end = new Date();
- console.log(myCounter + ' BODY: ' + chunk + " time: " + (end-start) + " Request start time: " + start.getTime());
-
- if (! isSent) {
- isSent = true;
- res.writeHead(200, {'Content-Type': 'application/xml'});
- res.end(chunk);
- }
- });
- }).end();
-}).listen(3013);
-
-console.log('Server running at port 3013');
View
31 test/test-supersimple.js
@@ -1,31 +0,0 @@
-var http = require('http');
-
-//create a simple debugger test and run to check list bug...
-//solve list bug if possible
-
-var options1 = {
-host: 'localhost',
-port: 80,
-path: '/'
-};
-
-http.createServer(function (req, res){
-
- res.writeHead(200, {'Content-Type':'text/plain'});
- res.write('Testing debugger....');
- debugger;
-
- http.get(options1, function(response){
- res.setEncoding('utf8');
- res.on('data', function(chunk){
- console.log('Got chunk');
- debugger;
- });
- });
-
- debugger;
- res.end('Ending test...');
-}).listen(8000);
-
-console.log('Server listening on port 8000');
-
Please sign in to comment.
Something went wrong with that request. Please try again.