Browse Source

Remove useless HTTP header

master
Matheus Fernandes 8 years ago
parent
commit
b0593c1f33
No known key found for this signature in database GPG Key ID: DD07CA4EA7B65C4F
  1. 5
      lib/domains.js

5
lib/domains.js

@ -6,7 +6,6 @@ const chalk = require('chalk')
// Ours
const Now = require('../lib')
const cfg = require('../lib/cfg')
const isZeitWorld = require('./is-zeit-world')
const { DNS_VERIFICATION_ERROR } = require('./errors')
@ -130,7 +129,6 @@ module.exports = class Domains extends Now {
}
async buy(name) {
const { token } = await cfg.read()
if (!name) {
throw new Error('`name` is not defined')
}
@ -149,9 +147,6 @@ module.exports = class Domains extends Now {
}
const res = await this._fetch(`/domains/buy`, {
method: 'POST',
headers: {
Authorization: `Bearer ${token}`
},
body
})
const json = await res.json()

Loading…
Cancel
Save