Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
standard --fix (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Sep 27, 2019
1 parent b02645b commit 3910084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const options = {

const token = jwt.sign(payload, config.JWT_SECRET, options)

axios.defaults.headers.common['Authorization'] = token
axios.defaults.headers.common.Authorization = token

const url = 'http://localhost:3000/students?name=maccyber'

Expand Down
2 changes: 1 addition & 1 deletion lib/get-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const logger = require('./logger')

module.exports = url => {
const token = generateJwt()
axios.defaults.headers.common['Authorization'] = token
axios.defaults.headers.common.Authorization = token
return new Promise((resolve, reject) => {
logger('info', ['get-data', 'url', url])
axios.get(url)
Expand Down

0 comments on commit 3910084

Please sign in to comment.