Sign Up
Loading...

Dashes in variable names and header "Content‑Type"

Asked by thomasdickhoff on January 26, 2025

Variable names replace "-" with "_" automatically, which prevents using names like "Content-Type" in headers. How should I handle this?


Answered by Twidget

Dashes are allowed in object field names but when creating variable names the platform converts dashes to underscores. If you need a variable name, use underscores; for object fields you can use dashes where supported.

Related Questions