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.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/nginx/t/js_fetch_objects.t b/nginx/t/js_fetch_objects.t
index bac74a06..edc3be57 100644
--- a/nginx/t/js_fetch_objects.t
+++ b/nginx/t/js_fetch_objects.t
@@ -443,15 +443,15 @@ $t->write_file('test.js', <<EOF);
['method', async () => {
var req = new Request("http://127.0.0.1:$p0/method",
{method: 'PUT'});
- var r = await ngx.fetch(req);
- var body = await r.text();
+ var r = await ngx.fetch(req);
+ var body = await r.text();
return `\${r.url}: \${r.status} \${body} \${r.headers.get('a')}`;
}, 'http://127.0.0.1:$p0/method: 200 PUT null'],
['request body', async () => {
var req = new Request("http://127.0.0.1:$p0/body",
{body: 'foo'});
- var r = await ngx.fetch(req);
- var body = await r.text();
+ var r = await ngx.fetch(req);
+ var body = await r.text();
return `\${r.url}: \${r.status} \${body}`;
}, 'http://127.0.0.1:$p0/body: 201 foo'],
];