Skip to content

Commit

Permalink
fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed May 24, 2018
1 parent adbdd8e commit f4c57b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wd/lib/http-utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var request = require('request'),
utils = require("./utils"),
urllib = require('url'),
packageDotJson = require('../package.json');
pkg = require('../../package.json');

exports.buildInitUrl =function(baseUrl)
{
Expand Down Expand Up @@ -41,7 +41,7 @@ exports.newHttpOpts = function(method, httpConfig) {
opts.headers = {};

opts.headers.Connection = 'keep-alive';
opts.headers['User-Agent'] = 'admc/wd/' + packageDotJson.version;
opts.headers['User-Agent'] = 'admc/wd/' + pkg.version;
opts.timeout = httpConfig.timeout;
if(httpConfig.proxy) { opts.proxy = httpConfig.proxy; }
// we need to check method here to cater for PUT and DELETE case
Expand Down

0 comments on commit f4c57b1

Please sign in to comment.