minor fixes in control module

This commit is contained in:
Roman Arutyunyan
2012-09-27 14:39:46 +04:00
parent 840b62bf71
commit 3d6d65f7c7

View File

@ -20,10 +20,6 @@ static char * ngx_rtmp_control_merge_loc_conf(ngx_conf_t *cf,
#define NGX_RTMP_CONTROL_ALL 0xff
#define NGX_RTMP_CONTROL_RECORD 0x01
/*
* global: stat-{bufs-{total,free,used}, total bytes in/out, bw in/out} - cscf
*/
typedef struct {
ngx_uint_t control;
@ -222,7 +218,7 @@ ngx_rtmp_control_record(ngx_http_request_t *r)
return ngx_http_send_header(r);
error:
r->headers_out.status = NGX_HTTP_INTERNAL_SERVER_ERROR;
r->headers_out.status = NGX_HTTP_BAD_REQUEST;
r->headers_out.content_length_n = msg.len;
b = ngx_calloc_buf(r->pool);