@@ -56,7 +56,7 @@ Private web_pResponseFormat As WebFormat
5656Private web_pCustomRequestFormat As String
5757Private web_pCustomResponseFormat As String
5858Private web_pBody As Variant
59- Private web_pConvertedBody As String
59+ Private web_pConvertedBody As Variant
6060Private web_pContentType As String
6161Private web_pAccept As String
6262Private web_pContentLength As Long
@@ -230,7 +230,7 @@ Public Property Let RequestFormat(Value As WebFormat)
230230 web_pRequestFormat = Value
231231
232232 ' Clear cached converted body
233- web_pConvertedBody = ""
233+ web_pConvertedBody = Empty
234234 End If
235235End Property
236236
@@ -266,7 +266,7 @@ Public Property Let ResponseFormat(Value As WebFormat)
266266 web_pResponseFormat = Value
267267
268268 ' Clear cached converted body
269- web_pConvertedBody = ""
269+ web_pConvertedBody = Empty
270270 End If
271271End Property
272272
@@ -298,7 +298,7 @@ Public Property Let CustomRequestFormat(Value As String)
298298 web_pCustomRequestFormat = Value
299299
300300 ' Clear cached converted body
301- web_pConvertedBody = ""
301+ web_pConvertedBody = Empty
302302
303303 If Value <> "" Then
304304 web_pRequestFormat = WebFormat.Custom
@@ -334,7 +334,7 @@ Public Property Let CustomResponseFormat(Value As String)
334334 web_pCustomResponseFormat = Value
335335
336336 ' Clear cached converted body
337- web_pConvertedBody = ""
337+ web_pConvertedBody = Empty
338338
339339 If Value <> "" Then
340340 ResponseFormat = WebFormat.Custom
@@ -461,7 +461,7 @@ Public Property Get Body() As Variant
461461 If Not VBA.IsEmpty(web_pBody) Then
462462 If VBA.VarType(web_pBody) = vbString Then
463463 Body = web_pBody
464- ElseIf web_pConvertedBody = "" Then
464+ ElseIf IsEmpty( web_pConvertedBody) Then
465465 ' Convert body and cache
466466 Body = WebHelpers.ConvertToFormat(web_pBody, Me.RequestFormat, Me.CustomRequestFormat)
467467 web_pConvertedBody = Body
@@ -471,11 +471,11 @@ Public Property Get Body() As Variant
471471 End If
472472End Property
473473Public Property Let Body(Value As Variant )
474- web_pConvertedBody = ""
474+ web_pConvertedBody = Empty
475475 web_pBody = Value
476476End Property
477477Public Property Set Body(Value As Variant )
478- web_pConvertedBody = ""
478+ web_pConvertedBody = Empty
479479 Set web_pBody = Value
480480End Property
481481
@@ -697,7 +697,7 @@ Public Sub AddBodyParameter(Key As Variant, Value As Variant)
697697 End If
698698
699699 ' Clear cached converted body
700- web_pConvertedBody = ""
700+ web_pConvertedBody = Empty
701701End Sub
702702
703703''
0 commit comments