8000
We read every piece of feedback, and take your input very seriously.
2 parents 3f7a5dd + 0388fc9 commit d590cc7Copy full SHA for d590cc7
CHANGES.rst
@@ -7,12 +7,15 @@ Unreleased
7
8
- Properly handle multi-line header folding in development server in
9
Python 2.7. (:issue:`1080`)
10
-- Restore the ``response`` argument to :exc:`exceptions.Unauthorized`.
+- Restore the ``response`` argument to :exc:`~exceptions.Unauthorized`.
11
(:pr:`1527`)
12
-- :exc:`exceptions.Unauthorized` doesn't add the ``WWW-Authenticate``
+- :exc:`~exceptions.Unauthorized` doesn't add the ``WWW-Authenticate``
13
header if ``www_authenticate`` is not given. (:issue:`1516`)
14
- The default URL converter correctly encodes bytes to string rather
15
than representing them with ``b''``. (:issue:`1502`)
16
+- Fix the filename format string in
17
+ :class:`~middleware.profiler.ProfilerMiddleware` to correctly handle
18
+ float values. (:issue:`1511`)
19
20
21
Version 0.15.2
src/werkzeug/middleware/profiler.py
@@ -77,7 +77,7 @@ def __init__(
77
sort_by=("time", "calls"),
78
restrictions=(),
79
profile_dir=None,
80
- filename_format="{method}.{path}.{elapsed:06d}ms.{time:d}.prof",
+ filename_format="{method}.{path}.{elapsed:.0f}ms.{time:.0f}.prof",
81
):
82
self._app = app
83
self._stream = stream