From f31d0f2b44356d9a13524337de45d108f82735e7 Mon Sep 17 00:00:00 2001 From: mgobat <45852490+mgobat@users.noreply.github.com> Date: Thu, 24 Sep 2020 07:52:55 -0500 Subject: [PATCH] Fix GitHub issue #15 Trim leading and trailing blanks from the API Url, Method, and API key when building the service request. --- Form1.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form1.vb b/Form1.vb index 3615f3b..6a57cd3 100644 --- a/Form1.vb +++ b/Form1.vb @@ -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