edisonX-sudo commented on issue #8388:
URL: https://github.com/apache/apisix/issues/8388#issuecomment-1669371464

   > I also encountered this problem, is there a solution now?
   
   could be solved in this way
   ```go
   ...
   func (ri *ResponseI18n2) ResponseFilter(conf interface{}, w 
pkgHTTP.Response) {
        respHeader := w.Header()
        contentType := respHeader.Get("Content-Type")
        respHeader.Set("X-Content-Type", contentType)
           ...
   }
   ...
   ```
   ```apisix config
   ...
    "response-rewrite": {
         "_meta": {
           "disable": false
         },
         "headers": {
           "set": {
             "Content-Type": "$sent_http_x_content_type"
           }
         }
       }
   ...
   ``` 


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