adamkdean / redirect

Redirection lightweight companion container for the nginx-proxy.
19 stars 5 forks source link

Disable the x-powered-by header from Express #7

Closed rutger1140 closed 2 years ago

rutger1140 commented 2 years ago

This removes the unneeded header from the redirect request.

➜ ~ curl -I -L http://site.com HTTP/1.1 301 Moved Permanently Server: nginx/1.20.2 Date: Fri, 10 Dec 2021 15:15:07 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 53 Connection: keep-alive X-Powered-By: Express Location: https://targetsite.com/ Vary: Accept

adamkdean commented 2 years ago

Thanks!