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

Add support for matching form-urlencoded http request body with schema mentioned in spec #76

Merged
merged 5 commits into from
Jul 27, 2015

Conversation

subinvarghesein
Copy link
Contributor

Continuation on Issue #46

Relax isBodyEqual comparison for form-urlencoded requests.
Expected response will be sent if the body matches with the schema but on request body mentioned in the spec.

@@ -5,6 +5,18 @@ var specSchema= require('./spec-schema');

var mediaTypeRe = /^\s*([^;]+)/i;

var ContentType = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this 👍

Could we though move it into a separate content-type.js module and export the functions? 💭

@subinvarghesein
Copy link
Contributor Author

Sure. Will update by tomorrow.

@yakovkhalinsky yakovkhalinsky modified the milestone: 0.1.10 release Jul 26, 2015
@yakovkhalinsky
Copy link
Contributor

Merging

yakovkhalinsky added a commit that referenced this pull request Jul 27, 2015
Add support for matching form-urlencoded http request body with schema mentioned in spec
@yakovkhalinsky yakovkhalinsky merged commit 8983335 into Aconex:master Jul 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants