Skip to content

Commit

Permalink
fix: handle server-timing header merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytelife26 committed Jun 24, 2024
1 parent 8e04e04 commit 9f03463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cfspeedtest/cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def run_test(self, test: TestSpec) -> TestTimers:
)
coll.full.append(time.time() - start)
coll.server.append(
float(r.headers["Server-Timing"].split("=")[1]) / 1e3
float(r.headers["Server-Timing"].split(",")[0].split("=")[1])
/ 1e3
)
coll.request.append(
r.elapsed.seconds + r.elapsed.microseconds / 1e6
Expand Down

0 comments on commit 9f03463

Please sign in to comment.