Skip to content

Commit 2ebe208

Browse files
committed
Chuck Norris only speaks in capital letters.
1 parent 13929ae commit 2ebe208

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

examples/browser-sync/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var proxy = require('../../index'); // require('http-proxy-middleware');
77
/**
88
* Configure proxy middleware
99
*/
10-
var chuckNorrisApiProxy = proxy('/jokes', {
10+
var ChuckNorrisProxy = proxy('/jokes', {
1111
target: 'http://api.icndb.com',
1212
changeOrigin: true, // for vhosted sites, changes host header to match to target's host
1313
logLevel: 'debug'
@@ -20,7 +20,7 @@ browserSync.init({
2020
server: {
2121
baseDir: './',
2222
port: 3000,
23-
middleware: [chuckNorrisApiProxy],
23+
middleware: [ChuckNorrisProxy],
2424
},
2525
startPath: '/jokes/random/5?limitTo=[nerdy]'
2626
});

examples/connect/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ var proxy = require('../../index'); // require('http-proxy-middleware');
88
/**
99
* Configure proxy middleware
1010
*/
11-
var chuckNorrisApiProxy = proxy('/jokes', {
11+
var ChuckNorrisProxy = proxy('/jokes', {
1212
target: 'http://api.icndb.com',
1313
changeOrigin: true, // for vhosted sites, changes host header to match to target's host
1414
logLevel: 'debug'
1515
});
16+
1617
var app = connect();
1718

1819
/**
1920
* Add the proxy to connect
2021
*/
21-
app.use(chuckNorrisApiProxy);
22+
app.use(ChuckNorrisProxy);
2223

2324
http.createServer(app).listen(3000);
2425

examples/express/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var proxy = require('../../index'); // require('http-proxy-middleware');
77
/**
88
* Configure proxy middleware
99
*/
10-
var chuckNorrisApiProxy = proxy('/jokes', {
10+
var ChuckNorrisProxy = proxy('/jokes', {
1111
target: 'http://api.icndb.com',
1212
changeOrigin: true, // for vhosted sites, changes host header to match to target's host
1313
logLevel: 'debug'
@@ -18,7 +18,7 @@ var app = express();
1818
/**
1919
* Add the proxy to express
2020
*/
21-
app.use(chuckNorrisApiProxy);
21+
app.use(ChuckNorrisProxy);
2222

2323
app.listen(3000);
2424

0 commit comments

Comments
 (0)