Skip to content

added simple wsgi support - #348

Merged
tylerharter merged 6 commits into
open-lambda:mainfrom
JaimeZepeda08:main
Oct 21, 2025
Merged

tylerharter merged 6 commits into
open-lambda:mainfrom
JaimeZepeda08:main

Conversation

@JaimeZepeda08

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread min-image/runtimes/python/server.py Outdated
# split path to get individual components
parts = path.split("/")
# keep everything after the first two components
if len(parts) > 2:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the length always at least 3 since there will always be a function name? Regardless, I don't think we need two cases here, just a one-liner.

parts = ["", "run", "f", "a", "b", "c"]
"/" + "/".join(parts[3:]) # /a/b/c

parts = ["", "run", "f"]
"/" + "/".join(parts[3:]) # "/"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just made a new commit with these changes

@JaimeZepeda08
JaimeZepeda08 marked this pull request as ready for review October 21, 2025 15:07
@tylerharter
tylerharter merged commit 78bedea into open-lambda:main Oct 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants