/* add the incoming chain to the chain ctx->in */
if (in) {
- if (ngx_chain_add_copy(r->pool, &ctx->in, in) == NGX_ERROR) {
+ if (ngx_chain_add_copy(r->pool, &ctx->in, in) != NGX_OK) {
return NGX_ERROR;
}
}
out = data;
if (!r->header_sent) {
- if (ngx_http_set_content_type(r) == NGX_ERROR) {
+ if (ngx_http_set_content_type(r) != NGX_OK) {
return NGX_ERROR;
}