Fix for gateway resource writing binary content of the 0 bytes length.
Merge branch 'master' into release-0.28.x