# What is the right way if module doesnt provide data for upstream filters

**URL:** <https://www.ruby-forum.com/t/what-is-the-right-way-if-module-doesnt-provide-data-for-upstream-filters/213416>\
**Category:** NGINX\
**Created:** [November 1, 2011, 4:30pm UTC](https://www.ruby-forum.com/t/what-is-the-right-way-if-module-doesnt-provide-data-for-upstream-filters/213416 "2011-11-01T16:30:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 1, 2011, 4:30pm UTC](https://www.ruby-forum.com/t/what-is-the-right-way-if-module-doesnt-provide-data-for-upstream-filters/213416/1 "2011-11-01T16:30:25Z")

</div>

I have module, that matches data going via nginx. I am buffering data,  
so there is situation that there is no data to provide to upstream  
filters. What is the right way to do in such case? Now I am calling  
next\_body\_filter(r, NULL); Is that ok?

Posted at Nginx Forum:

> **[What is the right way if module doesnt provide data for upstream filters](https://forum.nginx.org/read.php?2,217654,217654#msg-217654)**
>
> I have module, that matches data going via nginx. I am buffering data, so there is situation that there is no data to provide to upstream filters. What is the right way to do in such case? Now I am calling next\_body\_filter(r, NULL); Is that ok?
