zhoujiexiong commented on issue #11121:
URL: https://github.com/apache/apisix/issues/11121#issuecomment-2317914158

   @jompu 
   
   I tested with the case below on v3.2 with no problem.
   And I will test on v3.9.0/v.3.8.0 later.
   
   ```
   use t::APISIX 'no_plan';
   
   repeat_each(100);
   
   $ENV{SOME_STRING_VALUE_BUT_DIFFERENT} = 'astringvaluebutdifferent';
   $ENV{SOME_STRING_VALUE} = 'astringvalue';
   
   our $yaml_config = <<_EOC_;
   apisix:
     node_listen: 1984
   deployment:
     role: data_plane
     role_data_plane:
       config_provider: yaml
   _EOC_
   
   run_tests();
   
   __DATA__
   
   === TEST 1: apisix_issue_11121
   --- main_config
   env SOME_STRING_VALUE_BUT_DIFFERENT;
   env SOME_STRING_VALUE;
   --- yaml_config eval: $::yaml_config
   --- apisix_yaml
   upstreams:
     - id: 1
       nodes:
         - host: 127.0.0.1
           port: 1980
           weight: 1
   routes:
     - uri: /hello
       upstream_id: 1
       plugins:
         response-rewrite:
           headers:
             set:
               X-Some-String-Value-But-Different: "Different 
${{SOME_STRING_VALUE_BUT_DIFFERENT}}"
               X-Some-String-Value: ${{SOME_STRING_VALUE}}
   
   #END
   --- request
   GET /hello
   --- response_headers
   X-Some-String-Value-But-Different: Different astringvaluebutdifferent
   X-Some-String-Value: astringvalue
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to