Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
hfm committed Oct 12, 2016
1 parent e39a1b8 commit a7fa1e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stream/ngx_stream_mruby_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,9 +699,7 @@ static ngx_int_t ngx_stream_mruby_init(ngx_conf_t *cf)
{
ngx_stream_core_main_conf_t *cmcf = ngx_stream_conf_get_module_main_conf(cf, ngx_stream_core_module);

#if (nginx_version < 1011005)
cmcf->access_handler = ngx_stream_mruby_handler;
#else
#if (nginx_version >= 1011005)
ngx_stream_handler_pt *h;

h = ngx_array_push(&cmcf->phases[NGX_STREAM_ACCESS_PHASE].handlers);
Expand All @@ -710,6 +708,8 @@ static ngx_int_t ngx_stream_mruby_init(ngx_conf_t *cf)
}

*h = ngx_stream_mruby_handler;
#else
cmcf->access_handler = ngx_stream_mruby_handler;
#endif

return NGX_OK;
Expand Down

0 comments on commit a7fa1e8

Please sign in to comment.