From eac0fce1354899b56a41b8a1eec4b8339c370e1c Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 29 Aug 2013 17:01:42 +0200 Subject: [PATCH] Disallow persistent HTTP connections --- bin/validate-json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/validate-json b/bin/validate-json index 39f64d3..0d2e4a9 100755 --- a/bin/validate-json +++ b/bin/validate-json @@ -130,7 +130,10 @@ $urlData = getUrlFromPath($pathData); $context = stream_context_create( array( 'http' => array( - 'header' => 'Accept: */*', + 'header' => array( + 'Accept: */*', + 'Connection: Close' + ), 'max_redirects' => 5 ) )