Skip to content

Instantly share code, notes, and snippets.

@nabe256
Created April 28, 2013 13:35
Show Gist options
  • Save nabe256/5476895 to your computer and use it in GitHub Desktop.
Save nabe256/5476895 to your computer and use it in GitHub Desktop.
diff --git a/index.js b/index.js
index 0bcad82..6344b71 100755
--- a/index.js
+++ b/index.js
@@ -51,7 +51,8 @@ function request(str, cb) {
method: 'POST',
headers: {
'Content-length': str.length,
- 'Content-Type': 'text/plain'
+ 'Content-Type': 'text/plain',
+ 'User-Agent': 'markup ' + require('./package').version
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment