Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

php-wsgi

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

php-wsgi - npm Package Compare versions

Comparing version
0.0.10
to
0.0.11
+1
-1
php_wsgi.egg-info/PKG-INFO
Metadata-Version: 1.0
Name: php-wsgi
Version: 0.0.10
Version: 0.0.11
Summary: run php from python

@@ -5,0 +5,0 @@ Home-page: UNKNOWN

@@ -60,20 +60,19 @@ import os

self._run = True
if self._run:
if self.index_file.endswith('.php'):
res = self._run_php(environ.get('PATH_INFO'))
if res:
content_type = 'text/html'
status = '200 OK'
try:
json.loads(res)
content_type = 'application/json'
except:
pass
start_response(status,[('content-type',content_type),('User-Agent','Python-php-app')])
return res
else:
status = '404 ERROR'
error = 'script_file -> {} not found'.format(self.index_file)
start_response(status,[])
return error
#if res:
content_type = 'text/html'
status = '200 OK'
try:
json.loads(res)
content_type = 'application/json'
except:
pass
start_response(status,[('content-type',content_type),('User-Agent','Python-php-app')])
return res
else:
status = '404 ERROR'
error = 'script_file -> {} not found'.format(self.index_file)
start_response(status,[])
raise ServerExecption(error)
return self.app(environ,start_response)

@@ -80,0 +79,0 @@

Metadata-Version: 1.0
Name: php-wsgi
Version: 0.0.10
Version: 0.0.11
Summary: run php from python

@@ -5,0 +5,0 @@ Home-page: UNKNOWN

@@ -7,3 +7,3 @@ from setuptools import setup

'author_email':'kyle@level2designs.com',
'version':'0.0.10',
'version':'0.0.11',
'description':'run php from python',

@@ -10,0 +10,0 @@ 'packages':['php_wsgi'],