From 1c0b434efb0c99b21a3d4e1e19e243bd29deb276 Mon Sep 17 00:00:00 2001 From: Ulrich Wisser Date: Thu, 19 Jul 2018 18:44:31 -0400 Subject: [PATCH] fix content type --- modules/http/http.test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/http/http.test.lua b/modules/http/http.test.lua index 889b405c9..3d0ac1485 100644 --- a/modules/http/http.test.lua +++ b/modules/http/http.test.lua @@ -62,12 +62,12 @@ else code, body, mime = http_get(uri .. '/frequent') same(code, 200, '/frequent page return 200 OK') ok(#body > 0, '/frequent page has non-empty body') - same(mime, 'text/plain; version=0.0.4', '/frequent page has correct content type') + same(mime, 'application/json', '/frequent page has correct content type') -- /metrics serves bogus code, body, mime = http_get(uri .. '/bogus') same(code, 200, '/bogus page return 200 OK') ok(#body > 0, '/bogus page has non-empty body') - same(mime, 'text/plain; version=0.0.4', '/bogus page has correct content type') + same(mime, 'application/json', '/bogus page has correct content type') -- /trace serves trace log for requests code, body, mime = http_get(uri .. '/trace/localhost/A') same(code, 200, '/trace page return 200 OK') -- 2.47.2