From 9ebcb870b85b00325add3b056f84327f7e653e89 Mon Sep 17 00:00:00 2001 From: James Nylen Date: Thu, 28 Aug 2014 23:53:10 -0500 Subject: [PATCH] Fix readme headings It doesn't make sense to have the **Custom HTTP headers** and **request(options, callback)** sections *under* the **OAuth Signing** section. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 19f1f6458..c22729281 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ request.post({url:url, oauth:oauth}, function (e, r, body) { }) ``` -### Custom HTTP Headers +## Custom HTTP Headers HTTP Headers, such as `User-Agent`, can be set in the `options` object. In the example below, we call the github API to find out the number @@ -243,7 +243,7 @@ function callback(error, response, body) { request(options, callback); ``` -### request(options, callback) +## request(options, callback) The first argument can be either a `url` or an `options` object. The only required option is `uri`; all others are optional.