Skip to content

Commit eac0fce

Browse files
author
Christian Weiske
committed
Disallow persistent HTTP connections
1 parent 0e0d478 commit eac0fce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/validate-json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ $urlData = getUrlFromPath($pathData);
130130
$context = stream_context_create(
131131
array(
132132
'http' => array(
133-
'header' => 'Accept: */*',
133+
'header' => array(
134+
'Accept: */*',
135+
'Connection: Close'
136+
),
134137
'max_redirects' => 5
135138
)
136139
)

0 commit comments

Comments
 (0)