Skip to content

Commit

Permalink
add agent
Browse files Browse the repository at this point in the history
  • Loading branch information
aliyunmq committed Jan 2, 2019
1 parent dfbe373 commit 6203b1b
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 aliyun.mq
Copyright (c) 2019 aliyun.mq

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions docs/MQClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-234">line 234</a>
<a href="client.js.html#sunlight-1-line-235">line 235</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -1311,7 +1311,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-246">line 246</a>
<a href="client.js.html#sunlight-1-line-247">line 247</a>
</li>
</ul>
</dd>
Expand Down
6 changes: 3 additions & 3 deletions docs/MQConsumer.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-324">line 324</a>
<a href="client.js.html#sunlight-1-line-325">line 325</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -443,7 +443,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-445">line 445</a>
<a href="client.js.html#sunlight-1-line-446">line 446</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -668,7 +668,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-408">line 408</a>
<a href="client.js.html#sunlight-1-line-409">line 409</a>
</li>
</ul>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions docs/MQProducer.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-255">line 255</a>
<a href="client.js.html#sunlight-1-line-256">line 256</a>
</li>
</ul>
</dd>
Expand Down Expand Up @@ -419,7 +419,7 @@ <h5>Parameters:</h5>
<ul class="dummy">
<li>
<a href="client.js.html">client.js</a>,
<a href="client.js.html#sunlight-1-line-308">line 308</a>
<a href="client.js.html#sunlight-1-line-309">line 309</a>
</li>
</ul>
</dd>
Expand Down
3 changes: 2 additions & 1 deletion docs/client.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ <h1 class="page-title">Source: client.js</h1>
const headers = {
'date': date,
'x-mq-version': '2015-06-06',
'content-type': 'text/xml;charset=utf-8'
'content-type': 'text/xml;charset=utf-8',
'user-agent': 'mq-nodejs-sdk/1.0.0'
};

if (method !== 'GET' &amp;&amp; method !== 'HEAD') {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<article><h1>MQ Nodejs HTTP SDK</h1><p>Alyun MQ Documents: http://<a href="http://www.aliyun.com/product/ons">www.aliyun.com/product/ons</a></p>
<p>Aliyun MQ Console: https://ons.console.aliyun.com</p>
<h2>Installation</h2><p>Add dependency <code>@aliyunmq/mq-http-sdk</code></p>
<pre class="prettyprint source lang-bash"><code>npm install --save</code></pre><h2>docs</h2><p><a href="./docs/index.html">Documents</a></p>
<pre class="prettyprint source lang-bash"><code>npm install --save</code></pre><h2>docs</h2><p><a href="https://aliyunmq.github.io/mq-http-nodejs-sdk/">Documents</a></p>
<h2>Sample</h2><p><a href="https://github.com/aliyunmq/mq-http-samples/blob/master/nodejs/producer.js">Publish Message</a></p>
<p><a href="https://github.com/aliyunmq/mq-http-samples/blob/master/nodejs/consumer.js">Consume Message</a></p></article>
</section>
Expand Down
2 changes: 1 addition & 1 deletion docs/quicksearch.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion es5/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ class MQClient {
const headers = {
'date': date,
'x-mq-version': '2015-06-06',
'content-type': 'text/xml;charset=utf-8'
'content-type': 'text/xml;charset=utf-8',
'user-agent': 'mq-nodejs-sdk/1.0.0'
};

if (method !== 'GET' && method !== 'HEAD') {
Expand Down
3 changes: 2 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ class MQClient {
const headers = {
'date': date,
'x-mq-version': '2015-06-06',
'content-type': 'text/xml;charset=utf-8'
'content-type': 'text/xml;charset=utf-8',
'user-agent': 'mq-nodejs-sdk/1.0.0'
};

if (method !== 'GET' && method !== 'HEAD') {
Expand Down

0 comments on commit 6203b1b

Please sign in to comment.