From: Ulrich Wisser Date: Thu, 19 Jul 2018 22:44:31 +0000 (-0400) Subject: fix content type X-Git-Tag: v3.2.0~11^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c0b434efb0c99b21a3d4e1e19e243bd29deb276;p=thirdparty%2Fknot-resolver.git fix content type --- 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')