Fixed possible infinite loop when requesting a non-regular file