Skip to content

Commit

Permalink
Bug 1686488 [wpt PR 27148] - wptserve: correct sorting in DirectoryHa…
Browse files Browse the repository at this point in the history
…ndler, a=testonly

Automatic update from web-platform-tests
wptserve: correct sorting in DirectoryHandler

Found this while creating web-platform-tests/wpt#27129.

--

wpt-commits: b4c87a442f82ff5e1de9a94e735b7b6c5f2e60c5
wpt-pr: 27148

UltraBlame original commit: 9c7a799d20ebf91211786a0df2f07d5e7284681b
  • Loading branch information
marco-c committed Jan 25, 2021
1 parent 4478b5c commit a4b8b9f
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions testing/web-platform/tests/tools/wptserve/wptserve/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,55 @@
=
None

#
This
ensures
that
.
headers
always
sorts
after
the
file
it
provides
the
headers
for
.
E
.
g
.

#
if
we
have
x
x
-
y
and
x
.
headers
the
order
will
be
x
x
.
headers
and
then
x
-
y
.

for
item
in
Expand All @@ -719,6 +768,41 @@
(
path
)
key
=
lambda
x
:
(
x
[
:
-
len
(
"
.
headers
"
)
]
x
)
if
x
.
endswith
(
"
.
headers
"
)
else
(
x
x
)
)
:

Expand Down

0 comments on commit a4b8b9f

Please sign in to comment.