Use accept header to decide between pretty and plain printing.