Created
March 14, 2016 20:53
-
-
Save vyo/c41fbe2724b3bfd6891e to your computer and use it in GitHub Desktop.
short httpplease promise test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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); | |
}); | |
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
returns no response - wth?