Skip to content

Commit

Permalink
Merge pull request #51 from PerimeterX/dev
Browse files Browse the repository at this point in the history
Version 2.7.1
  • Loading branch information
Johnny Tordgeman authored Sep 16, 2018
2 parents 336f4bd + 87952dd commit 079daa4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
32 changes: 0 additions & 32 deletions PerimeterXModule/Internals/ReverseProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,38 +151,6 @@ public void ReversePxCaptcha(HttpContext context)


bool success = ProcessRequest(context, PxConfig.CaptchaHostUrl, uri);



}

/**
* <summary>
* Reverse requests for PerimeterX captcha client
* </summary>
* <param name="context">The original request context</param>
*/
public void ReversePxCaptcha(HttpContext context)
{
Debug.WriteLine("Fetching Captcha client", PxConstants.LOG_CATEGORY);
if (!PxConfig.FirstPartyEnabled)
{
Debug.WriteLine("First party is disabled, rendering default captcha client response", PxConstants.LOG_CATEGORY);
RenderPredefinedResponse(context, CONTENT_TYPE_JAVASCRIPT, DEFAULT_CLIENT_VALUE);
return;
}

string uri = "/" + PxConfig.AppId + context.Request.RawUrl.Replace(CaptchaReversePrefix, "");


bool success = ProcessRequest(context, PxConfig.CaptchaHostUrl, uri);

if (!success)
{
Debug.WriteLine("Redirect JS client returned bad status, rendering default response", PxConstants.LOG_CATEGORY);
RenderPredefinedResponse(context, CONTENT_TYPE_JAVASCRIPT, DEFAULT_CLIENT_VALUE);
}

}

/**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[PerimeterX](http://www.perimeterx.com) ASP.NET SDK
===================================================

> Latest stable version: [v2.7.0](https://www.nuget.org/packages/PerimeterXModule/2.7.0)
> Latest stable version: [v2.7.1](https://www.nuget.org/packages/PerimeterXModule/2.7.1)
Table of Contents
-----------------
Expand Down

0 comments on commit 079daa4

Please sign in to comment.