Skip to content

Add http method to output#4

Merged
floatdrop merged 1 commit into
floatdrop:masterfrom
sdepold:feature/http-method
Dec 12, 2015
Merged

Add http method to output#4
floatdrop merged 1 commit into
floatdrop:masterfrom
sdepold:feature/http-method

Conversation

@sdepold
Copy link
Copy Markdown
Contributor

@sdepold sdepold commented Dec 10, 2015

Great project :)

This PR prepends the http method to the requested URL.

Comment thread index.js Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

options.method can be undefined quite often

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.

Ah ok. Are you fine with the idea in general? I would add fallback to get then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just do options.method || 'GET'. That is accurate according to the API.

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.

fixed!

@sdepold sdepold force-pushed the feature/http-method branch from dbb2464 to 1250e01 Compare December 11, 2015 21:33
floatdrop added a commit that referenced this pull request Dec 12, 2015
@floatdrop floatdrop merged commit 3419aaf into floatdrop:master Dec 12, 2015
@floatdrop
Copy link
Copy Markdown
Owner

Sweet, thanks!

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.

3 participants