From 0b6210cd37b68b94252cb798598b12974a20e1c1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 21 May 2024 22:56:19 +0200 Subject: Adding upstream version 5.28.2+dfsg1+~cs23.11.12.3. Signed-off-by: Daniel Baumann --- test/issue-1670.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/issue-1670.js (limited to 'test/issue-1670.js') diff --git a/test/issue-1670.js b/test/issue-1670.js new file mode 100644 index 0000000..c27bdb2 --- /dev/null +++ b/test/issue-1670.js @@ -0,0 +1,12 @@ +'use strict' + +const { test } = require('tap') +const { request } = require('..') + +test('https://github.com/mcollina/undici/issues/810', async (t) => { + const { body } = await request('https://api.github.com/user/emails') + + await body.text() + + t.end() +}) -- cgit v1.2.3