Fix TestClient for fastapi cause the req.client None error (#355)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8aaedf0..381dc5d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,16 @@
 ## Change Logs
 
+### 1.2.0
+
+- Feature:
+  - Drop support for 3.7 (#356)
+
+- Fixes:
+  - Fix: user/password replacement is not allowed for relative URLs (#349)
+  - Fix pulsar client does not support init arguments other than service_url (#351)
+  - Fix outdated make dev-fix rule in CodeStyle.md (#350)
+  - Fix TestClient for fastapi cause the req.client None error (#355)
+
 ### 1.1.0
 
 - Feature:
diff --git a/skywalking/plugins/sw_fastapi.py b/skywalking/plugins/sw_fastapi.py
index 45ce504..9acba50 100644
--- a/skywalking/plugins/sw_fastapi.py
+++ b/skywalking/plugins/sw_fastapi.py
@@ -56,7 +56,7 @@
         with span:
             span.layer = Layer.Http
             span.component = Component.FastAPI
-            span.peer = f'{req.client.host}:{req.client.port}'
+            span.peer = f'{req.client.host}:{req.client.port}' if req.client else 'unknown'
             span.tag(TagHttpMethod(method))
             span.tag(TagHttpURL(str(req.url).split('?')[0]))
             if config.plugin_fastapi_collect_http_params and req.query_params: