<p dir="auto">When sending a <code class="notranslate">Response</code> with the Flash server, and the user provides a <code class="notranslate">Content-Length</code> header, the Flash server will add an additional <code class="notranslate">Content-Length</code> header with the content length as it calculated it, where as if the <code class="notranslate">Content-Length</code> is provided to the "native" stable server, it does not duplicate the header (I am not sure if it is overriding it or if it is just letting it pass through).</p>
<p dir="auto">It feels like the Flash server should follow the behaviour of the native stable server.</p>
<p dir="auto">Ref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1586206831" data-permission-text="Title is private" data-url="https://github.com/oakserver/oak/issues/587" data-hovercard-type="issue" data-hovercard-url="/oakserver/oak/issues/587/hovercard" href="https://github.com/oakserver/oak/issues/587">oakserver/oak#587</a> (I will fix it in oak by simply omitting the <code class="notranslate">content-length</code> in all cases as the servers are actually better at handling this header now)</p>
<p dir="auto">I installed deno with brew.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ brew install deno
...
...
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==&gt; Summary
🍺  /usr/local/Cellar/deno/1.0.0: 9 files, 41.7MB
$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2
$ deno --help"><pre class="notranslate"><code class="notranslate">$ brew install deno
...
...
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==&gt; Summary
🍺  /usr/local/Cellar/deno/1.0.0: 9 files, 41.7MB
$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2
$ deno --help
</code></pre></div>
<p dir="auto">After created <code class="notranslate">/usr/local/etc/zsh_completion.d/</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno completions zsh &gt; /usr/local/etc/zsh_completion.d/deno.zsh
$ source /usr/local/etc/zsh_completion.d/deno.zsh
_arguments:comparguments:325: can only be called from completion function"><pre class="notranslate"><code class="notranslate">$ deno completions zsh &gt; /usr/local/etc/zsh_completion.d/deno.zsh
$ source /usr/local/etc/zsh_completion.d/deno.zsh
_arguments:comparguments:325: can only be called from completion function
</code></pre></div>
<p dir="auto">So how can I add shell completion?</p>
<p dir="auto">I tried this but get the same output.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno completions zsh &gt; /usr/local/share/zsh/site-functions/_deno
$ source /usr/local/share/zsh/site-functions/_deno
_arguments:comparguments:325: can only be called from completion function"><pre class="notranslate"><code class="notranslate">$ deno completions zsh &gt; /usr/local/share/zsh/site-functions/_deno
$ source /usr/local/share/zsh/site-functions/_deno
_arguments:comparguments:325: can only be called from completion function
</code></pre></div>