Fix Request::segments() ignore segment "0"
Merge pull request #4496 from Zuken/4.1-mine

Fix Request::segments() ignores segment "/0"
Fix spacing.
Merge branch '4.1' into 4.2