From 07c5933e78048f5c57fb241a73f6600a08811c97 Mon Sep 17 00:00:00 2001 From: binaryify <821374382@qq.com> Date: Sat, 9 Jul 2016 14:28:37 +0800 Subject: [PATCH] 'update' --- README.MD | 3 ++- src/component/getPlaylists.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 37b236a..90f47b4 100644 --- a/README.MD +++ b/README.MD @@ -7,7 +7,8 @@ devDependencies -

+

+ ![](http://binaryify.github.io/images/api.jpg) ## Start diff --git a/src/component/getPlaylists.js b/src/component/getPlaylists.js index b0d1721..7c0d005 100644 --- a/src/component/getPlaylists.js +++ b/src/component/getPlaylists.js @@ -5,7 +5,7 @@ import { deepCopy } from '../util' const getPlaylists = (id, callback) => { const option = deepCopy(globalOption) const url = `${origin}/api/playlist/detail?id=${id}` - const method = 'get' + const method = 'GET' Object.assign(option, {url, method}) request(option, (err, res, body) => { if(!err && res.statusCode == 200) {