Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo.

  • Loading branch information...
commit 787ab1edd6a4e967d4d3af8340f1a2c3493dcf06 1 parent 36069e8
@tsyd authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.md
  2. +1 −1  example.js
View
4 README.md
@@ -28,7 +28,7 @@ The following example demonstrates `proxy-tamper` abilities:
request.url = request.url.replace(/google/g, 'bing');
});
- // replace all instances of 'Apple' with 'Orange' in Techcrunch articles
+ // replace all instances of 'Apple' with 'Orange' in TechCrunch articles
proxy.tamper(/techcrunch.com.*\/$/, function (request) {
// gzip encoding is not supported when tampering the body
delete request.headers['accept-encoding'];
@@ -57,7 +57,7 @@ It is possible to manipulate the original request before it's executed over the
It is also possible to modify the response before proxying it back to the original request by specifying an `onResponse` handler:
- // replace all instances of 'Apple' with 'Orange' in Techcrunch articles
+ // replace all instances of 'Apple' with 'Orange' in TechCrunch articles
proxy.tamper(/techcrunch.com.*\/$/, function (request) {
// gzip encoding is not supported when tampering the body
delete request.headers['accept-encoding'];
View
2  example.js
@@ -8,7 +8,7 @@ proxy.tamper(/google/, function (request) {
request.url = request.url.replace(/google/g, 'bing');
});
-// replace all instances of 'Apple' with 'Orange' in Techcrunch articles
+// replace all instances of 'Apple' with 'Orange' in TechCrunch articles
proxy.tamper(/techcrunch.com.*\/$/, function (request) {
console.log('tampering ' + request.url);
Please sign in to comment.
Something went wrong with that request. Please try again.