Set the connection header if connection is supposed to be closed
Revise approach for directory listing