use only Accept header if it exists

Fixes #20