Back To School Post Ideas

Environmental Monitoring Plan Template

clipart de squelette de dinosaure rabbit skeleton deyrolle

:
Poster Design For Food Siopao
make path configurable, closes Microsoft Office Business Cards Template
1 parent Piling Social Media Post commit 61c060a

Clipart de squelette de dinosaure rabbit skeleton deyrolle 2 files changed Credit Cards For Small Business Owners

Lines changed: 3 additions & 1 deletion

Product Presentation Design Pinterest Environmental Monitoring Plan Template

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Available options are:
4545

4646
* host: the host to listen on, defaults to '0.0.0.0'
4747
* port: the port to listen on, defaults to 3420
48+
* path: the path for the CloneAGC callback, defaults to '/CloneAGC/callback'
4849
* secret: if specified, you must use the same secret in your webhook configuration in CloneAGC. if a secret is specified, but one is not configured in CloneAGC, the hook will fail. if a secret is *not* specified, but one *is* configured in CloneAGC, the signature will not be validated and will be assumed to be correct. consider yourself warned.
4950
* logger: an optional instance of a logger that supports the "log" and "error" methods and one parameter for data (like console), default is to not log. mostly only for debugging purposes.
5051

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function serverHandler(req, res) {
125125
self.logger.log(Util.format('[CloneAGCHook]', req.method, req.url, remoteAddress));
126126

127127
// 404 if the path is wrong
128-
if (url.pathname !== '/CloneAGC/callback') {
128+
if (url.pathname !== self.path) {
129129
self.logger.error(Util.format('[CloneAGCHook] got invalid path from %s, returning 404', remoteAddress));
130130
failed = true;
131131
return reply(404, res);
@@ -157,6 +157,7 @@ var CloneAGCHook = function (options) {
157157
this.host = options.host || '0.0.0.0';
158158
this.secret = options.secret || false;
159159
this.logger = options.logger || { log: function () {}, error: function () {} };
160+
this.path = options.path || '/CloneAGC/callback';
160161

161162
this.server = Http.createServer(serverHandler.bind(this));
162163
EventEmitter.call(this);

Coming Soon PNG Environmental Monitoring Plan Template

Comments
 (0)