Skip to content

Commit 077a7b9

Browse files
authored
pep 676: don't add trailing slash on redirect (python#2007)
1 parent 0fb5715 commit 077a7b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/nginx.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ http {
269269
}
270270

271271
location ~ ^/dev/peps/?(.*)$ {
272-
return 302 https://peps.python.org/$1/;
272+
return 302 https://peps.python.org/$1;
273273
}
274274

275275
location ~ ^/peps/(.*)\.html$ {
276-
return 302 https://peps.python.org/$1/;
276+
return 302 https://peps.python.org/$1;
277277
}
278278

279279
location ^/(dev/)?peps(/.*)?$ {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy