plugin-rewritebody icon indicating copy to clipboard operation
plugin-rewritebody copied to clipboard

gzipped data support

Open GuillaumeOuint opened this issue 4 years ago • 4 comments

Hello, This plugin doesn't work on my installation. Traefik version: v2.3-rc5 Plugin version: v0.2.2 Traefik CLI args:

            - '--experimental.plugins.plugin-rewritebody.modulename=github.com/containous/plugin-rewritebody'
            - '--experimental.plugins.plugin-rewritebody.version=v0.2.2'

Traefik Middleware:

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: rewrite
spec:
  plugin:
    plugin-rewritebody:
      lastModified: true
      rewrites:
        - regex: test
          replacement: working

Thanks in advance.

GuillaumeOuint avatar Sep 16 '20 03:09 GuillaumeOuint

Discovered via the test file that this plugin doesn't work on gzip compressed data. My bad, but I think this info need to be on the readme

GuillaumeOuint avatar Sep 16 '20 04:09 GuillaumeOuint

Hello,

Yes this plugin is not available for gzip for now. I will add this information to the readme.

Thanks for the report.

youkoulayley avatar Sep 17 '20 08:09 youkoulayley

Yes this plugin is not available for gzip for now. I will add this information to the readme.

I had to find that on this page as it's not on the readme ;P

ptruman avatar Oct 17 '21 12:10 ptruman

I found https://github.com/packruler/rewrite-body which might help. 😊

hongbo-miao avatar May 07 '22 02:05 hongbo-miao