Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:31 +09:00
commit 3a8de01ba0
1794 changed files with 137027 additions and 0 deletions

37
node_modules/express-http-proxy/test/urlParsing.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
'use strict';
var assert = require('assert');
var express = require('express');
var request = require('supertest');
var proxy = require('../');
describe('url parsing', function () {
this.timeout(10000);
it('can parse a url with a port', function (done) {
var app = express();
app.use(proxy('http://httpbin.org:80'));
request(app)
.get('/')
.end(function (err) {
if (err) { return done(err); }
assert(true);
done();
});
});
it('does not throw `Uncaught RangeError` if you have both a port and a trailing slash', function (done) {
var app = express();
app.use(proxy('http://httpbin.org:80/'));
request(app)
.get('/')
.end(function (err) {
if (err) { return done(err); }
assert(true);
done();
});
});
});