[fileserver] Prevent on_headers callback from being called more than once.