Detecting if being excited via command line interface to correct error "Cannot modify header information".
Merge pull request #1909 from shefik/cli

Detecting if being excited via command line interface to correct error "Cannot modify header information"