0

I want to set the below header in nginx conf

payload="{\"pathParameters\":{\"additionalProp1\":\"string\",\"additionalProp2\":\"string\",\"additionalProp3\":\"string\"},\"operationId\":\"operation\",\"scope\":\"Apps\"}"

more_set_input_headers payload $payload;

but I am getting below error : /etc/nginx $ nginx -s reload 2021/03/17 04:36:41 [emerg] 2463#2463: unexpected "p" in /etc/nginx/nginx.conf:593 nginx: [emerg] unexpected "p" in /etc/nginx/nginx.conf:593

Divya Vyas
  • 323
  • 1
  • 4
  • 16

1 Answers1

1

You need use below code to set the variable value

set $payload <value>
Tarun Lalwani
  • 142,312
  • 9
  • 204
  • 265