Skip to content

Commit

Permalink
Fix GitHub issue #15
Browse files Browse the repository at this point in the history
Trim leading and trailing blanks from the API Url, Method, and API key when building the service request.
  • Loading branch information
mgobat committed Sep 24, 2020
1 parent 7c82b1f commit f31d0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ Public Class Form1
End If

fixedBarcode = Replace(Trim(InputBox.Text), "+", "%2B")
svcRequest = apiURL.Text & apiMethod.Text.Replace("{item_barcode}", fixedBarcode) & "&apikey=" & apiKey.Text
svcRequest = Trim(apiURL.Text) & Trim(apiMethod.Text.Replace("{item_barcode}", fixedBarcode)) & "&apikey=" & Trim(apiKey.Text)

lastbc = InputBox.Text
addToHistory = True
Expand Down

0 comments on commit f31d0f2

Please sign in to comment.