Skip to content

Commit 473f850

Browse files
committed
fix PATH_INFO when there are query params
1 parent e6bfd36 commit 473f850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_esp32spi/adafruit_esp32spi_wsgiserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _get_environ(self, client):
194194
env["SERVER_PROTOCOL"] = ver
195195
env["SERVER_PORT"] = self.port
196196
if path.find("?") >= 0:
197-
env["PATH_INFO"] = path.split()[0]
197+
env["PATH_INFO"] = path.split("?")[0]
198198
env["QUERY_STRING"] = path.split("?")[1]
199199
else:
200200
env["PATH_INFO"] = path

0 commit comments

Comments
 (0)