Skip to content

Commit

Permalink
chore: back out unintended change
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored and mmerickel committed Aug 25, 2023
1 parent d6ac1ed commit 26182b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyramid/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ def get_resource_name(self, request):

# normalize asset spec or fs path into resource_path
if self.package_name: # package resource
resource_path = '%s/%s' % (self.docroot.rstrip('/'), path)
resource_path = '{}/{}'.format(self.docroot.rstrip('/'), path)
if resource_isdir(self.package_name, resource_path):
if not request.path_url.endswith('/'):
raise self.add_slash_redirect(request)
resource_path = '%s/%s' % (
resource_path = '{}/{}'.format(
resource_path.rstrip('/'),
self.index,
)
Expand Down

0 comments on commit 26182b6

Please sign in to comment.