Don't send http headers if running on CLI.