Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit cde735d

Browse files
authored
Merge pull request #17 from Nike-Inc/handle-new-cloudfront-event-format
Handle new cloudfront event format
2 parents 3849b1f + 668c792 commit cde735d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cerberus-cloudfront-lambda/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version '1.3.0'
1+
version '1.4.0'
22

33
dependencies {
44
compile group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.1.0'
@@ -25,4 +25,4 @@ shadowJar {
2525

2626
tasks.assemble.finalizedBy shadowJar
2727

28-
tasks.check.dependsOn jacocoTestReport
28+
tasks.check.dependsOn jacocoTestReport

cerberus-cloudfront-lambda/src/main/java/com/nike/cerberus/lambda/waf/CloudFrontLogEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public CloudFrontLogEvent(String logEntry) {
1515
}
1616
data = logEntry.split("\\t");
1717

18-
if (data.length != 24) {
18+
if (data.length != 26) {
1919
throw new IllegalArgumentException("You must supply a valid non empty CloudFront log entry, see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html#LogFileFormat");
2020
}
2121
}

0 commit comments

Comments
 (0)