Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkxuyang committed Dec 4, 2024
1 parent a51139e commit ace1676
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/uid2/operator/service/ResponseUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public static void LogInfoAndSend400Response(RoutingContext rc, String message)
public static void SendClientErrorResponseAndRecordStats(String errorStatus, int statusCode, RoutingContext rc, String message, Integer siteId, TokenResponseStatsCollector.Endpoint endpoint, TokenResponseStatsCollector.ResponseStatus responseStatus, ISiteStore siteProvider, TokenResponseStatsCollector.PlatformType platformType)
{
// 400 error
if (ResponseStatus.ClientError.equals(errorStatus))
if (ResponseStatus.ClientError.equals(errorStatus) ||
ResponseStatus.InvalidAppName.equals(errorStatus) ||
ResponseStatus.InvalidHttpOrigin.equals(errorStatus))
{
LogInfoAndSendResponse(errorStatus, statusCode, rc, message);
}
Expand Down

0 comments on commit ace1676

Please sign in to comment.