Update to fix command line error

If called from a command line application, the $_SERVER['HTTP_ACCEPT']  attribute is not found and causes an error.