Skip to content

Commit

Permalink
Allow Initilized verb to be sent in a batch of statements
Browse files Browse the repository at this point in the history
Prevents a false violation from being thrown when initializing a session via a batch of statements adlnet#19
  • Loading branch information
ysrn authored Nov 16, 2021
1 parent a553f84 commit 039ca12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/service/plugins/routes/lrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const Boom = require("@hapi/boom"),
throw Helpers.buildViolatedReqId("9.6.3.1-4", st.id);
}

if (! session.is_initialized && st.verb.id !== VERB_INITIALIZED_ID) {
if (! session.is_initialized && st.verb.id !== VERB_INITIALIZED_ID && statements[0].verb.id !== VERB_INITIALIZED_ID) {
throw Helpers.buildViolatedReqId("9.3.0.0-4", st.id);
}

Expand Down

0 comments on commit 039ca12

Please sign in to comment.