Skip to content

Commit 81c3ebe

Browse files
committed
fix: assign an empty dictionary to RESTConnector's resp.headers if null
1 parent 41a9a6a commit 81c3ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Connection/RESTConnector.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private IEnumerator ProcessRequestQueue()
631631
resp.Error = error;
632632
}
633633

634-
resp.Headers = unityWebRequest.GetResponseHeaders();
634+
resp.Headers = unityWebRequest.GetResponseHeaders() ?? new Dictionary<string, string>();
635635

636636
resp.ElapsedTime = (float)(DateTime.Now - startTime).TotalSeconds;
637637

0 commit comments

Comments
 (0)