qcobjects-cli
Advanced tools
Comparing version 0.1.37 to 0.1.38
@@ -47,6 +47,6 @@ /** | ||
"REQUEST_METHOD":`${this.request.method}`, | ||
"SCRIPT_FILENAME":`${this.request.scriptname}`, | ||
"SCRIPT_NAME":`${this.request.scriptname}`, | ||
"SCRIPT_FILENAME":`${this.scriptFilePath}`, | ||
"SCRIPT_NAME":`${this.scriptFilePath.toString()}`, | ||
"PATH_INFO":`${this.request.path}`, | ||
"SERVER_NAME":`${this.request.hostname}`, | ||
"SERVER_NAME":`${this.domain}`, | ||
"SERVER_PROTOCOL":`HTTP/2`, | ||
@@ -63,3 +63,6 @@ "REQUEST_URI":`${this.request.href}`, | ||
var headervalue = this.request.headers[headername]; | ||
phpheaders['HTTP_'+phpheadername] = `${fixedEncodeURIComponent(headervalue)}`; | ||
if (typeof headervalue != 'string'){ | ||
headervalue = JSON.stringify(headervalue); | ||
} | ||
phpheaders['HTTP_'+phpheadername] = fixedEncodeURIComponent(headervalue); | ||
} | ||
@@ -123,2 +126,4 @@ } | ||
microservice.scriptFilePath = scriptFilePath; | ||
var commandline = microservice.get_php_headers_list()+` php -d include_path="${PHPIncludePath}" -q <<- 'EOF' | ||
@@ -128,2 +133,5 @@ <?php | ||
foreach ($_SERVER as $_k => $_v) { | ||
if (array_key_exists($_k,$_ENV)){ | ||
$_SERVER[$_k] = $_ENV[$_k]; | ||
} | ||
if ( substr($_k, 0, strlen('HTTP_')) == 'HTTP_' ){ | ||
@@ -187,2 +195,4 @@ $_SERVER[$_k]=urldecode($_v); | ||
microservice.scriptFilePath = scriptFilePath; | ||
var commandline = microservice.get_php_headers_list()+` php -d include_path="${PHPIncludePath}" -q <<- 'EOF' | ||
@@ -192,2 +202,5 @@ <?php | ||
foreach ($_SERVER as $_k => $_v) { | ||
if (array_key_exists($_k,$_ENV)){ | ||
$_SERVER[$_k] = $_ENV[$_k]; | ||
} | ||
if ( substr($_k, 0, strlen('HTTP_')) == 'HTTP_' ){ | ||
@@ -194,0 +207,0 @@ $_SERVER[$_k]=urldecode($_v); |
{ | ||
"name": "qcobjects-cli", | ||
"version": "0.1.37", | ||
"version": "0.1.38", | ||
"description": "qcobjects cli command line tool", | ||
@@ -5,0 +5,0 @@ "main": "qcobjects-cli.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91920
2132