cleaning up accept header
cleanup for ontent type header
minor cleanup in file management
minor cleanup for request-related parts