<p>Benjamin Keith Ford has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6910">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">http.c: Fix http header send content.<br><br>Currently ast_http_send barricades a portion of the content that<br>needs to be sent in order to establish a connection for things<br>like the ARI client. The conditional and contents have been changed<br>to ensure that everything that needs to be sent, will be sent.<br><br>ASTERISK-27372<br><br>Change-Id: I8816d2d8f80f4fefc6dcae4b5fdfc97f1e46496d<br>---<br>M main/http.c<br>1 file changed, 2 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/10/6910/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/http.c b/main/http.c<br>index 7191eb5..072b7fd 100644<br>--- a/main/http.c<br>+++ b/main/http.c<br>@@ -529,10 +529,8 @@<br>               ) <= 0) {<br>          ast_debug(1, "ast_iostream_printf() failed: %s\n", strerror(errno));<br>                close_connection = 1;<br>-        }<br>-<br>- /* send content */<br>-   if (!close_connection && send_content && fd) {<br>+       } else if (send_content && fd) {<br>+             /* send content */<br>            while ((len = read(fd, buf, sizeof(buf))) > 0) {<br>                   if (ast_iostream_write(ser->stream, buf, len) != len) {<br>                            ast_debug(1, "ast_iostream_write() failed: %s\n", strerror(errno));<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6910">change 6910</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6910"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I8816d2d8f80f4fefc6dcae4b5fdfc97f1e46496d </div>
<div style="display:none"> Gerrit-Change-Number: 6910 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.com> </div>