Fixes a bug in the request parser

The request parser did not correctly handle 0