added a fix for common problems in request line