Only strip newline in OrderedStreamingForkController
authorErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 28 Sep 2018 17:58:00 +0000 (10:58 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 28 Sep 2018 19:00:32 +0000 (12:00 -0700)
commitc94dea7029caea6377f4e36213104afde0bd6642
treed89ea0894df9ce00689111d27432c6f9597803e9
parente2e9117a51f5c08e32817f474e1c7b2882307785
Only strip newline in OrderedStreamingForkController

The controller should pass through lines of input exactly as
they were provided, only stripping the trailing newline that
delimits items. The trim was making `door` and `door ` equivilant
but for the use case in search the distinction is important.

Additionally check that the line is actually empty, don't throw
away inputs like '0' which are falsy.

Change-Id: Ifac910543fdb46a27da021e831e3e18befefcfc5
includes/OrderedStreamingForkController.php