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 2022/03/27 16:23:34 UTC

[GitHub] [apisix-go-plugin-runner] Goxiaoy commented on issue #74: bug: pkgHTTP.Request RespHeader() Add override previous value

Goxiaoy commented on issue #74:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/74#issuecomment-1079964248


   https://github.com/apache/apisix/blob/f624fb0a4d33e5aa674ec659e9d778da2ef9860f/apisix/plugins/ext-plugin/init.lua#L626-L635
   
   ```
               local len = rewrite:RespHeadersLength()
               if len > 0 then
                   for i = 1, len do
                       local entry = rewrite:RespHeaders(i)
                       local name = entry:Name()
                       if exclude_resp_header[str_lower(name)] == nil then
                           core.response.set_header(name, entry:Value())
                       end
                   end
               end
   ```
   Codes here should take multiple header with same name into account
   
   @rampagecong @shuaijinchao 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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