aboutsummaryrefslogtreecommitdiff
path: root/nginx/t/js_fetch_objects.t
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/t/js_fetch_objects.t')
-rw-r--r--nginx/t/js_fetch_objects.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/nginx/t/js_fetch_objects.t b/nginx/t/js_fetch_objects.t
index c8001823..d0f47630 100644
--- a/nginx/t/js_fetch_objects.t
+++ b/nginx/t/js_fetch_objects.t
@@ -206,6 +206,11 @@ $t->write_file('test.js', <<EOF);
h.set('a', '#');
return h.get('a');
}, '#'],
+ ['set on empty', () => {
+ var h = new Headers([]);
+ h.set('x-test', '1234');
+ return h.get('x-test');
+ }, '1234'],
];
run(r, tests);