nitrojs / nitrojs/nitro

Server Timing Headers Contain Url Encoding

Open
#1,176 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug nuxt timing v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

Environment

Node 18.15.0
Nitro 2.3.3

Reproduction

add this to your nuxt config file

nitro: {
  timing: true
}

do a nuxt build, nuxt preview
inspect the response headers from the page hit in your browser

Describe the bug

When setting nitro.timing: true in nuxt.config.ts, the timing names returned are url encoded instead of normal.

Notice the %20 for spaces, and %2F for / etc..
image
image

Additional context

In Nuxt 2, these were spaces and they looked correct.
image

Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by enabling nitro.timing in nuxt.config.ts, then running a Nuxt build and preview and inspecting the page response headers. Trace the timing-header handling from that configuration entry point; done means timing names containing spaces or slashes are returned normally rather than URL encoded.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.