Skip to content

Commit fc8ecaf

Browse files
committed
fix: item.search null
1 parent 3820df5 commit fc8ecaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentation/http-shared.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function formatURL (item) {
8686
return {
8787
href: item.href,
8888
pathname: item.pathname,
89-
path: item.pathname + item.search,
89+
path: item.pathname + (item.search || ''),
9090
protocol: item.protocol,
9191
host: item.host,
9292
port: item.port,

0 commit comments

Comments
 (0)