Skip to content

Commit

Permalink
remove one more "/" (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu authored Nov 23, 2023
1 parent f0d1f64 commit 9c9f81b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/PY/pinpointPy/Fastapi/FastAPIRequestPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def onEnd(self, traceId, response: Response):
# fix bug in in fastapi/docs
ut = '/'
if 'root_path' in self.request.scope:
ut += self.request.scope['root_path']
ut = self.request.scope['root_path']
if 'route' in self.request.scope:
ut += self.request.scope['route'].path
ut = self.request.scope['route'].path

pinpoint.add_trace_header(Defines.PP_URL_TEMPLATED, ut, traceId)

Expand Down

0 comments on commit 9c9f81b

Please sign in to comment.