Skip to content

Add WSGI tests for missing input and invalid content length - #185

Open
Aarohi1Agarwal wants to merge 1 commit into
DevilsAutumn:mainfrom
Aarohi1Agarwal:test/wsgi-missing-input
Open

Add WSGI tests for missing input and invalid content length#185
Aarohi1Agarwal wants to merge 1 commit into
DevilsAutumn:mainfrom
Aarohi1Agarwal:test/wsgi-missing-input

Conversation

@Aarohi1Agarwal

Copy link
Copy Markdown

Summary

Adds focused WSGI adapter tests for two uncovered branches:

  • missing wsgi.input returns an empty request body
  • invalid non-numeric CONTENT_LENGTH returns 400 Bad Request without reading the input stream

No runtime behavior changes. This PR only adds test coverage.
Closes #177

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Greptile has paused reviews on this repository — it used its 100 free open-source review credits for this billing period. Reviews resume automatically on August 6. To continue before then, an organization admin can keep reviews running past the free credits — those bill as normal usage.

@Aarohi1Agarwal
Aarohi1Agarwal force-pushed the test/wsgi-missing-input branch from 6ed53e3 to bda6647 Compare July 31, 2026 16:30
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.

Add WSGI tests for missing input and invalid content length

1 participant