Skip to content

Instantly share code, notes, and snippets.

@vyo
Created March 14, 2016 20:53
Show Gist options
  • Save vyo/c41fbe2724b3bfd6891e to your computer and use it in GitHub Desktop.
Save vyo/c41fbe2724b3bfd6891e to your computer and use it in GitHub Desktop.
short httpplease promise test
'use strict';
const httpplease = require('httpplease');
const httppleasePromise = require('httpplease-promises');
const Promise = require('bluebird');
const Please = httpplease.use(httppleasePromise(Promise));
Please.head('https://www.google.com')
.then(function (res) {
console.log(res.status);
});
@vyo
Copy link
Author

vyo commented Mar 14, 2016

returns no response - wth?

@vyo
Copy link
Author

vyo commented Mar 14, 2016

manual promisification via bluebird's Promise.promisify yields the same strange (non-) result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment