File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from httpdbg .records import HTTPRecords
44
55
6- __version__ = "1.1.0 "
6+ __version__ = "1.1.1 "
77
88__all__ = ["httprecord" , "HTTPRecords" ]
Original file line number Diff line number Diff line change 1111
1212
1313def set_hook_for_http_server_handle_one_request (records : HTTPRecords , method : Callable ):
14- def hook (* args , ** kwargs ):
14+
15+ def hook (self , * args , ** kwargs ):
16+ from httpdbg .webapp .app import HttpbgHTTPRequestHandler
1517
1618 # the group label/full_label will be updated when the endpoint method will be called
17- with httpdbg_group (records , "one request" , "" ):
18- ret = method (* args , ** kwargs )
19+ if not isinstance (self , HttpbgHTTPRequestHandler ):
20+ with httpdbg_group (records , "one request" , "" ):
21+ ret = method (self , * args , ** kwargs )
22+ else :
23+ # this request is due to the httpdbg web server itself, we can ignore it
24+ ret = method (self , * args , ** kwargs )
1925
2026 return ret
2127
You can’t perform that action at this time.
0 commit comments