Lock version for superagent to 1.7.1

to avoid an unexpected behavior on request.header in 1.7.2:
Node version's request.header uses lower-case keys while browser
version's request.header keeps current case.

See also visionmedia/superagent#873
This commit is contained in:
xhh 2016-01-27 12:01:50 +08:00
parent 72d7acc06f
commit 29885ab2ae
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"test": "./node_modules/mocha/bin/mocha --recursive"
},
"dependencies": {
"superagent": "^1.7.1"
"superagent": "1.7.1"
},
"devDependencies": {
"mocha": "~2.3.4",

View File

@ -8,7 +8,7 @@
"test": "./node_modules/mocha/bin/mocha --recursive"
},
"dependencies": {
"superagent": "^1.7.1"
"superagent": "1.7.1"
},
"devDependencies": {
"mocha": "~2.3.4",

View File

@ -17,7 +17,7 @@
});
</script>
<script src="https://cdn.rawgit.com/stephanebachelier/superagent-dist/1.6.1/superagent.js"></script>
<script src="../node_modules/superagent/superagent.js"></script>
<script src="../src/model/Category.js"></script>
<script src="../src/model/Tag.js"></script>