Skip to content

Commit 0c3e8cd

Browse files
committed
Merge pull request #113 from VBA-tools/AddBodyParameter-error
Change AddBodyParameter to Variant keys
2 parents 7f32114 + 0226aa0 commit 0c3e8cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
specs/node_modules
33

44
# Ignore temporary Excel files
5+
~$*
56
*/~$*
67

78
# Ignore credentials (don't check in sensitive data)

src/WebRequest.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,11 +675,11 @@ End Sub
675675
' ```
676676
'
677677
' @method AddBodyParameter
678-
' @param {String} Key
678+
' @param {Variant} Key
679679
' @param {Variant} Value
680680
' @throws 11020 / 80042b0c / -2147210484 - Cannot add body parameter to non-Dictionary
681681
''
682-
Public Sub AddBodyParameter(Key As String, Value As Variant)
682+
Public Sub AddBodyParameter(Key As Variant, Value As Variant)
683683
If VBA.IsEmpty(web_pBody) Then
684684
Set web_pBody = New Dictionary
685685
ElseIf Not TypeOf web_pBody Is Dictionary Then

0 commit comments

Comments
 (0)