You must have a "bareword" to the left of the arrow for the autoquoting to work, and "content-type" is
not a bareword. Fortunately, LWP permits an underscore to be used in a header name, and automatically changes the underscore to a dash, so rewrite your invocation as: