You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/05 14:45:23 UTC

[GitHub] [apisix] juzhiyuan commented on a change in pull request #1961: add apisix-version info to headers

juzhiyuan commented on a change in pull request #1961:
URL: https://github.com/apache/apisix/pull/1961#discussion_r465780694



##########
File path: apisix/init.lua
##########
@@ -299,6 +300,8 @@ function _M.http_access_phase()
 
     core.ctx.set_vars_meta(api_ctx)
 
+    core.response.set_header("server", ver_header)

Review comment:
       I would recommend adding a more independent header to describe the version of APISIX, e.g {"X-Version": "1.4"}




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org