secure-http flag in a composer.json doesn't work
<p>I need to use http composer registry for several packages:</p>

<pre><code>...
"repositories":[
  {"type":"composer", "url":"http://&lt;url&gt;"}
],
"secure-http":false,
...
</code></pre>

<p>But when I am trying to <code>composer update</code> to update lock file, I got:</p>

<pre><code>[Composer\Downloader\TransportException]
Your configuration does not allow connection to http://&lt;url&gt;.
See https://getcomposer.org/doc/06-config.md#secure-http for details.
</code></pre>

<p>By responding url I found next information;</p>

<pre><code>secure-http#

Defaults to true. 
If set to true only HTTPS URLs are allowed to be downloaded via Composer. 
If you really absolutely need HTTP access to something then you can disable it ...
</code></pre>

<p>So I am confused what I am doing wrong.</p>