0

I've read ngx_http_core_module#variables, however I cannot find the Accept-Encoding field.

xi.lin
  • 103
  • 1
  • 4

1 Answers1

4

The $http_accept_encoding variable is what you're looking for.

womble
  • 96,255
  • 29
  • 175
  • 230
  • Thanks. Can I get all the http header field throught `$http_`? – xi.lin Nov 11 '15 at 07:06
  • Yep. The documentation you linked to says, "`$http_`: arbitrary request header field; the last part of a variable name is the field name converted to lower case with dashes replaced by underscores" – womble Nov 11 '15 at 10:02