Skip to content

Commit e4d2408

Browse files
committed
Merge branch 'master' into develop
2 parents 83e8875 + fbfa6f3 commit e4d2408

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##The MIT License (MIT)
22

3-
Copyright (c) 2015-2016 Tushar Mathur [tusharm.com](tusharm.com)
3+
Copyright (c) 2016-2017 Tushar Mathur [tusharm.com](tusharm.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.**
21+
THE SOFTWARE.**

perf/server.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var options = {
1212
var httpServer = http.createServer(app)
1313
var httpsServer = https.createServer(options, app)
1414
app.use('/files', express.static(path.join(__dirname, '/files')))
15+
app.get('/fixed-size', (req, res) => res.send('a quick brown fox jumps over the lazy dog'))
1516

1617
const startServer = (app, port) => new Promise((i) => { // eslint-disable-line
1718
const onClose = () => new Promise((i) => server.close(i)) // eslint-disable-line

test/integration/test.observable.js

+8
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,12 @@ test(async function (t) {
3232
.toPromise()
3333
t.same(response.headers['content-length'], '317235')
3434
})
35+
36+
test(async function (t) {
37+
const size = await Observables
38+
.requestContentLength({url: 'https://localhost:3101/fixed-size', strictSSL: false})
39+
.toPromise()
40+
t.same(size, 41)
41+
})
42+
3543
/*eslint-enable */

0 commit comments

Comments
 (0)