Merge pull request #130 from securogroup/update-403-fix

Fix returning 40x on_update handler to correctly disconnect client
This commit is contained in:
Sergey 2016-05-13 23:20:41 +03:00
commit 62748fe56d

View file

@ -1502,7 +1502,7 @@ ngx_rtmp_notify_update_handle(ngx_rtmp_session_t *s,
rc = ngx_rtmp_notify_parse_http_retcode(s, in);
if ((!nacf->update_strict && rc == NGX_ERROR) ||
if ((!nacf->update_strict && (rc == NGX_ERROR || rc == NGX_DECLINED) ) ||
(nacf->update_strict && rc != NGX_OK))
{
ngx_log_error(NGX_LOG_INFO, s->connection->log, 0,