user 6 年之前
父節點
當前提交
ff8b2aa5f8
共有 3 個文件被更改,包括 7 次插入3 次删除
  1. 3 1
      lib/webclient-node.js
  2. 1 1
      lib/webclient-node.js.map
  3. 3 1
      src/webclient-node.ts

+ 3 - 1
lib/webclient-node.js

@@ -14,7 +14,9 @@ class WebClientNode {
         return __awaiter(this, void 0, void 0, function* () {
             const rpOptions = {
                 method: options.method,
-                uri: options.url
+                uri: options.url,
+                body: options.body,
+                headers: options.headers
             };
             const result = request(rpOptions);
             return result;

文件差異過大導致無法顯示
+ 1 - 1
lib/webclient-node.js.map


+ 3 - 1
src/webclient-node.ts

@@ -7,7 +7,9 @@ export default class WebClientNode implements IWebClient {
     public async request(options: IWebClientOptions): Promise<string> {
         const rpOptions = {
             method: options.method,
-            uri: options.url
+            uri: options.url,
+            body: options.body,
+            headers: options.headers
         };
         const result = request(rpOptions);
         return result;