fix(server): Fix EISDIR error when hitting the test server