Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
caa1f494
Commit
caa1f494
authored
Jul 26, 2011
by
Dominic Tarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[minor] minor fixes to gzip middleware example
parent
f6484de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
examples/gzip-middleware.js
examples/gzip-middleware.js
+4
-3
No files found.
examples/gzip-middleware.js
View file @
caa1f494
/*
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment