Skip to content

Commit

Permalink
[minor] minor fixes to gzip middleware example
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Aug 2, 2011
1 parent f6484de commit caa1f49
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/gzip-middleware.js
@@ -1,7 +1,7 @@
/*
basic-proxy.js: Basic example of proxying over HTTP
gzip-middleware.js: Basic example of middleware in node-http-proxy
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires.
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, Marak Squires, & Dominic Tarr.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down Expand Up @@ -32,8 +32,9 @@ var util = require('util'),
//
// Basic Http Proxy Server
//

httpProxy.createServer(
require('connect-gzip').gzip({ matchType: /./ }),
require('connect-gzip').gzip({ matchType: /?:./ }),
9000, 'localhost'
).listen(8000);

Expand Down

0 comments on commit caa1f49

Please sign in to comment.