Changed set to add_header to avoid slow path in httputil.