<p>George Joseph <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6909">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved; Approved for Submit
</div><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;">diff --git a/main/http.c b/main/http.c<br>index 7191eb5..30b2fe2 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 file 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/6909">change 6909</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/6909"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I8816d2d8f80f4fefc6dcae4b5fdfc97f1e46496d </div>
<div style="display:none"> Gerrit-Change-Number: 6909 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>