fix for large requests when output filter is called before input filter