Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: expressjs/express
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2135b33a81150b8bbdae7329cabdf0e2c48b849c
Choose a base ref
..
head repository: expressjs/express
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 499a8c11ee1cc9d9f801e3f92e352efcd69cf236
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/res.location.js
4 changes: 2 additions & 2 deletions test/res.location.js
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ describe('res', function(){
});

request(app)
.get(`/?q=http://google.com${encodeURIComponent('\\@apple.com')}`)
.get('/?q=http://google.com' + encodeURIComponent('\\@apple.com'))
.expect(200)
.expect('Location', 'http://google.com\\@apple.com')
.end(function (err) {
@@ -68,7 +68,7 @@ describe('res', function(){

// This ensures that our protocol check is case insensitive
request(app)
.get(`/?q=HTTP://google.com${encodeURIComponent('\\@apple.com')}`)
.get('/?q=HTTP://google.com' + encodeURIComponent('\\@apple.com'))
.expect(200)
.expect('Location', 'HTTP://google.com\\@apple.com')
.end(done)