Skip to content

Commit ee0461f

Browse files
authored
Merge pull request #17 from dynamicweb/sha/25379-use-correct-length-for-body
Changed from using InputStream.Length to ContentLength header
2 parents b0f903a + 511de40 commit ee0461f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Dynamicweb.Ecommerce.CheckoutHandlers.QuickPayPaymentWindow.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>10.1.2</VersionPrefix>
3+
<VersionPrefix>10.1.3</VersionPrefix>
44
<AssemblyVersion>1.0.0.0</AssemblyVersion>
55
<Title>QuickPay Payment Window</Title>
66
<Description>The QuickPay Payment Window checkout handler is designed to work with QuickPay v10.</Description>

src/QuickPayPaymentWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ private void Callback(Order order)
566566
{
567567
lock (lockObject)
568568
{
569-
if (Context.Current.Request.InputStream.Length == 0)
569+
if (Converter.ToInt64(Context.Current.Request.Headers["Content-Length"]) == 0)
570570
{
571571
LogEvent(order, "Invalid callback - no InputStream or not a POST");
572572
return;

0 commit comments

Comments
 (0)