diff --git a/lib/bindings/http/receiver_structured_0_2.js b/lib/bindings/http/receiver_structured_0_2.js index 77caea0..6185826 100644 --- a/lib/bindings/http/receiver_structured_0_2.js +++ b/lib/bindings/http/receiver_structured_0_2.js @@ -5,7 +5,7 @@ var spec02 = new Spec02(); const allowedContentTypes = []; allowedContentTypes.push("application/cloudevents+json; charset=utf-8"); -function is_http_request_valid(req, res, config) { +function is_valid_http_request(req, res, config) { var valid = true; if(req.url === config.path @@ -59,7 +59,7 @@ HTTPStructured.prototype.receive = function(){ return new Promise((resolve, reject) => { self.server = http.createServer((request, res) => { - if(is_http_request_valid(request, res, this.config)){ + if(is_valid_http_request(request, res, this.config)){ var body = []; request.on("error", err => { console.error(err);