Commit caa1f494 authored by Dominic Tarr's avatar Dominic Tarr

[minor] minor fixes to gzip middleware example

parent f6484de4
/*
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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment