喇叭headers

This commit is contained in:
曹前明 2022-09-16 10:08:30 +08:00
parent 5a6c6d6394
commit dbd15803a1
2 changed files with 1 additions and 4 deletions

View File

@ -164,6 +164,3 @@ class SpClient:
"errors": errors "errors": errors
}) })
Tlog(**self.log).save() Tlog(**self.log).save()
def headers(self):
return self.headers

View File

@ -69,7 +69,7 @@ class SpeakerViewSet(CustomGenericViewSet):
获取headers 获取headers
""" """
return Response(spClient.headers()) return Response({'headers': spClient.headers})
class XxTestView(APIView): class XxTestView(APIView):