Skip to content

Commit caa1f49

Browse files
committed
[minor] minor fixes to gzip middleware example
1 parent f6484de commit caa1f49

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: examples/gzip-middleware.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
basic-proxy.js: Basic example of proxying over HTTP
2+
gzip-middleware.js: Basic example of middleware in node-http-proxy
33
4-
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires.
4+
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, Marak Squires, & Dominic Tarr.
55
66
Permission is hereby granted, free of charge, to any person obtaining
77
a copy of this software and associated documentation files (the
@@ -32,8 +32,9 @@ var util = require('util'),
3232
//
3333
// Basic Http Proxy Server
3434
//
35+
3536
httpProxy.createServer(
36-
require('connect-gzip').gzip({ matchType: /./ }),
37+
require('connect-gzip').gzip({ matchType: /?:./ }),
3738
9000, 'localhost'
3839
).listen(8000);
3940

0 commit comments

Comments
 (0)