Skip to content

Commit a67512d

Browse files
committed
fix: Use a single instance of the default serializer
when creating service clients, instead of creating a new one each time, which behaves the same as the single instance that's been created already. Fixes #3148
1 parent 6ed78b1 commit a67512d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Src/Support/Google.Apis/Services/BaseClientService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class Initializer
148148
public Initializer()
149149
{
150150
GZipEnabled = true;
151-
Serializer = new NewtonsoftJsonSerializer();
151+
Serializer = NewtonsoftJsonSerializer.Instance;
152152
DefaultExponentialBackOffPolicy = ExponentialBackOffPolicy.UnsuccessfulResponse503;
153153
MaxUrlLength = DefaultMaxUrlLength;
154154
VersionHeaderBuilder = new VersionHeaderBuilder()

0 commit comments

Comments
 (0)