Skip to content

Commit

Permalink
remove one more "/" (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu committed Mar 28, 2024
1 parent 23bc3a8 commit 500b08b
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 500b08b

Please sign in to comment.