Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix extractors, middleware for e2e tests #104

Merged
merged 1 commit into from
Nov 30, 2018
Merged

Conversation

bbangert
Copy link
Member

Extractors now use proper limits from the state object. BSO handling
during deserialization/validation matches Python more closely.

Closes #97

src/error.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
};
// Verify all the keys are valid
let valid_keys = ["id", "sortindex", "payload", "ttl"];
for key_name in map.keys() {
Copy link
Member

Choose a reason for hiding this comment

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

nit this could be a one liner any()

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess I'm feeling dense as I'm not seeing what would be needed to make that happen.

src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
@bbangert bbangert force-pushed the feat/issue-97 branch 2 times, most recently from cb7dc91 to 85aa96a Compare November 30, 2018 01:02
src/web/extractors.rs Outdated Show resolved Hide resolved
pjenvey
pjenvey previously approved these changes Nov 30, 2018
Extractors now use proper limits from the state object. BSO handling
during deserialization/validation matches Python more closely.

Closes #97
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.

Improper response status codes
3 participants