<p dir="auto">If an exception is handled by exception handlers and a valid response is generated then the response should also be processed using <code class="notranslate">process_response</code>.</p>
<p dir="auto">Is <code class="notranslate">flask run</code> supposed to spin up a TLS listener if the app is configured with TLS?</p>
<p dir="auto">Take this <code class="notranslate">app.py</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if __name__ == &quot;__main__&quot;:
    app.run(ssl_context=('cert.pem', 'key.pem'))"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>:
    <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">ssl_context</span><span class="pl-c1">=</span>(<span class="pl-s">'cert.pem'</span>, <span class="pl-s">'key.pem'</span>))</pre></div>
<ul dir="auto">
<li>If i run <code class="notranslate">python app.py</code> i get the expected <code class="notranslate">Listening on https://...</code> and all is well - note the http<strong>s</strong>.</li>
<li>If i run <code class="notranslate">flask run</code> i get an HTTP listener, <code class="notranslate">Listening on http://...</code>. No TLS.</li>
</ul>
<p dir="auto">Is this expected behaviour? May i suggest mentioning this somewhere in the quickstart? - <a href="http://flask.pocoo.org/docs/0.12/quickstart/" rel="nofollow">http://flask.pocoo.org/docs/0.12/quickstart/</a></p>
<p dir="auto">Would be great if someone would lay out the difference between the two invocations.</p>
<p dir="auto">Ref:<br>
<a href="https://stackoverflow.com/questions/48518584/" rel="nofollow">https://stackoverflow.com/questions/48518584/</a></p>