Fix compatibility with nginx-1.7.9+.

Change-Id: I262a13f007724c40496bf8c44f9518cb1ee75663
Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>