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

#23 Option to pass custom headers #25

Closed
wants to merge 1 commit into from

Conversation

reda-alaoui
Copy link

#23

@reda-alaoui
Copy link
Author

Considering this project as dead.

@reda-alaoui reda-alaoui closed this Feb 5, 2017
@3rd-Eden
Copy link
Member

3rd-Eden commented Feb 5, 2017

Cool, just because someone doesn't want to merge you PR it's dead. Great logic.

@reda-alaoui
Copy link
Author

No activity on PRs for one year.
I say that the project is dead, and then magically someone appears and start to process them :)

Sorry if I looked agressive, this wasn't my intent. I was juste cleaning my open PRs. If you are interested in those PRs I can reopen them.

I know that maintaining a project is hard ;)

@reda-alaoui reda-alaoui reopened this Feb 5, 2017
//
var headers = {};
cli.header.forEach(function(header){
var keyValue = header.split(':');

Choose a reason for hiding this comment

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

Header Val might have ':' therefore the split will be wrong. Try:
var keyValue = header.split(/:/);
var key = keyValue.shift();
var value = keyValue.join(':');

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