@@ -65,18 +65,6 @@ protected internal async Task<TrybeResponse> SendAsync(
65
65
( HttpStatusCode ) 0 ,
66
66
error : new Error ( ex . Message , exception : ex ) ) ;
67
67
68
- if ( httpReq ? . Content is not null )
69
- {
70
- response . RequestContent = await httpReq . Content . ReadAsStringAsync ( )
71
- . ConfigureAwait ( false ) ;
72
- }
73
-
74
- if ( httpResp ? . Content is not null )
75
- {
76
- response . ResponseContent = await httpResp . Content . ReadAsStringAsync ( )
77
- . ConfigureAwait ( false ) ; ;
78
- }
79
-
80
68
return response ;
81
69
}
82
70
}
@@ -122,18 +110,6 @@ protected internal async Task<TrybeResponse> SendAsync<TRequest>(
122
110
( HttpStatusCode ) 0 ,
123
111
error : new Error ( ex . Message , exception : ex ) ) ;
124
112
125
- if ( httpReq ? . Content is not null )
126
- {
127
- response . RequestContent = await httpReq . Content . ReadAsStringAsync ( )
128
- . ConfigureAwait ( false ) ;
129
- }
130
-
131
- if ( httpResp ? . Content is not null )
132
- {
133
- response . ResponseContent = await httpResp . Content . ReadAsStringAsync ( )
134
- . ConfigureAwait ( false ) ; ;
135
- }
136
-
137
113
return response ;
138
114
}
139
115
}
@@ -174,18 +150,6 @@ protected internal async Task<TrybeResponse<TResponse>> FetchAsync<TResponse>(
174
150
( HttpStatusCode ) 0 ,
175
151
error : new Error ( ex . Message , exception : ex ) ) ;
176
152
177
- if ( httpReq ? . Content is not null )
178
- {
179
- response . RequestContent = await httpReq . Content . ReadAsStringAsync ( )
180
- . ConfigureAwait ( false ) ;
181
- }
182
-
183
- if ( httpResp ? . Content is not null )
184
- {
185
- response . ResponseContent = await httpResp . Content . ReadAsStringAsync ( )
186
- . ConfigureAwait ( false ) ; ;
187
- }
188
-
189
153
return response ;
190
154
}
191
155
finally
@@ -244,18 +208,6 @@ protected internal async Task<TrybeResponse<TResponse>> FetchAsync<TRequest, TRe
244
208
( HttpStatusCode ) 0 ,
245
209
error : new Error ( ex . Message , exception : ex ) ) ;
246
210
247
- if ( httpReq ? . Content is not null )
248
- {
249
- response . RequestContent = await httpReq . Content . ReadAsStringAsync ( )
250
- . ConfigureAwait ( false ) ;
251
- }
252
-
253
- if ( httpResp ? . Content is not null )
254
- {
255
- response . ResponseContent = await httpResp . Content . ReadAsStringAsync ( )
256
- . ConfigureAwait ( false ) ; ;
257
- }
258
-
259
211
return response ;
260
212
}
261
213
finally
0 commit comments