<p>Yes, that worked - Happily added the "Reason" header here. So this is a work-around that we may have to document until we have a solution.</p>
<pre><code>> GET http://localhost:5060/api/1.0/ping HTTP/1.1
> Host: localhost:5060
> User-Agent: curl/7.52.1
> Accept: */*

< HTTP/1.1 200 Ping pong
< Sia: SIP/2.0/TCP 127.0.0.1:57458
< Reason: Answering ping API request /api/1.0/ping
< Content-Type: text/html
< Content-Length: 0
< Date: Tue, 12 Jun 2018 12:38:41 GMT
< Age: 0

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1548#issuecomment-396575597">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZcRTOtvqr8jTPflzb_wQ9LJFQrSpks5t77dhgaJpZM4UQFlv">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZTYwwcQ4KQ0Utv6SUxYy4h_MZMaQks5t77dhgaJpZM4UQFlv.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/kamailio/kamailio/issues/1548#issuecomment-396575597","url":"https://github.com/kamailio/kamailio/issues/1548#issuecomment-396575597","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@oej in #1548: Yes, that worked - Happily added the \"Reason\" header here. So this is a work-around that we may have to document until we have a solution.\r\n\r\n```\r\n\u003e GET http://localhost:5060/api/1.0/ping HTTP/1.1\r\n\u003e Host: localhost:5060\r\n\u003e User-Agent: curl/7.52.1\r\n\u003e Accept: */*\r\n\u003e \r\n\u003c HTTP/1.1 200 Ping pong\r\n\u003c Sia: SIP/2.0/TCP 127.0.0.1:57458\r\n\u003c Reason: Answering ping API request /api/1.0/ping\r\n\u003c Content-Type: text/html\r\n\u003c Content-Length: 0\r\n\u003c Date: Tue, 12 Jun 2018 12:38:41 GMT\r\n\u003c Age: 0\r\n\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1548#issuecomment-396575597"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] Append_to_reply does not work for XHTTP responses without body (#1548)",
"sections": [
{
"text": "",
"activityTitle": "**Olle E. Johansson**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@oej",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1548,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1548\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1548#issuecomment-396575597"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 339761519\n}"
}
],
"themeColor": "26292E"
}</script>