set attribute for accept-encoding