Skip to content

Commit 077a7b9

Browse files
authored
pep 676: don't add trailing slash on redirect (#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)