Commit a8c2fd8f authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

http meta

parent f5a48910
...@@ -16,9 +16,10 @@ function perform_function(context,response){ ...@@ -16,9 +16,10 @@ function perform_function(context,response){
{ {
if(data.object_type && data.object_type == 'httpdata'){ if(data.object_type && data.object_type == 'httpdata'){
var htdata = data; var htdata = data;
input_meta.method = htdata.method;
if(param.http_headers){ if(param.http_meta){
input_meta.http_headers = htdata.http_headers input_meta.http_headers = htdata.headers;
input_meta.http_method = htdata.method;
} }
if(typeof htdata.data == 'object' && htdata.data.type == 'Buffer'){ if(typeof htdata.data == 'object' && htdata.data.type == 'Buffer'){
data = Buffer.from(htdata.data); data = Buffer.from(htdata.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment