Skip to content

Commit

Permalink
Expose the allowURLOmission config option
Browse files Browse the repository at this point in the history
This allows the verifier to work-around a Persona bug that has
been fixed (mozilla/persona#3982) but not
yet deployed.

Fixes mozilla#19
  • Loading branch information
Francois Marier authored and seanmonstar committed May 30, 2014
1 parent 66a7d69 commit c1e30ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/config.js
Expand Up @@ -36,6 +36,12 @@ function loadConf() {
default: false,
env: "INSECURE_SSL"
},
allowURLOmission: {
doc: "(temporary hack) Allow missing URLs in support documents",
format: Boolean,
default: false,
env: "ALLOW_URL_OMISSION"
},
toobusy: {
maxLag: {
doc: "Max event-loop lag before toobusy reports failure",
Expand Down
1 change: 1 addition & 0 deletions lib/v1.js
Expand Up @@ -11,6 +11,7 @@ util = require('util');

var verifier = new Verifier({
httpTimeout: config.get('httpTimeout'),
allowURLOmission: config.get('allowURLOmission'),
insecureSSL: config.get('insecureSSL')
});

Expand Down
1 change: 1 addition & 0 deletions lib/v2.js
Expand Up @@ -11,6 +11,7 @@ util = require('util');

var verifier = new Verifier({
httpTimeout: config.get('httpTimeout'),
allowURLOmission: config.get('allowURLOmission'),
insecureSSL: config.get('insecureSSL')
});

Expand Down

0 comments on commit c1e30ea

Please sign in to comment.