From 789caba26010573a6b5895a88b76308ba5412862 Mon Sep 17 00:00:00 2001 From: dengsgo Date: Thu, 4 Apr 2019 14:48:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=A1=8C=201.9=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- notifer.go | 2 +- raw.go | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ae22a19..77859b3 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ notifier: # 请求超时 15 秒 # POST 格式: # Content-Type: application/json;charset=UTF-8 - # User-Agent: FileBoy Net Notifier v1.8 + # User-Agent: FileBoy Net Notifier v1.9 # Body: {"project_folder":"/watcher-dirs","file":"test.go","changed":1546421173070433800,"ext":".go"} # 例: http://example.com/notifier/fileboy-listener # 不启用通知,请留空 "" @@ -216,7 +216,7 @@ notifier: # timeout 15 second # POST : # Content-Type: application/json;charset=UTF-8 - # User-Agent: FileBoy Net Notifier v1.8 + # User-Agent: FileBoy Net Notifier v1.9 # Body: {"project_folder":"/watcher-dirs","file":"test.go","changed":1546421173070433800,"ext":".go"} # e.g: http://example.com/notifier/fileboy-listener # no notice is enabled. Please leave it blank. "" diff --git a/notifer.go b/notifer.go index 855d04f..5032f8e 100644 --- a/notifer.go +++ b/notifer.go @@ -60,7 +60,7 @@ func (n *NetNotifier) dispatch(params *postParams) { return } req.Header.Set("Content-Type", "application/json;charset=UTF-8") - req.Header.Set("User-Agent", "FileBoy Net Notifier v1.8") + req.Header.Set("User-Agent", "FileBoy Net Notifier v1.9") resp, err := client.Do(req) if err != nil { log.Println(PreError, "notifier call failed. err:", err) diff --git a/raw.go b/raw.go index 9dc42b0..a78f061 100644 --- a/raw.go +++ b/raw.go @@ -61,7 +61,7 @@ notifier: # 请求超时 15 秒 # POST 格式: # Content-Type: application/json;charset=UTF-8 - # User-Agent: FileBoy Net Notifier v1.8 + # User-Agent: FileBoy Net Notifier v1.9 # Body: {"project_folder":"/watcher-dirs","file":"test.go","changed":1546421173070433800,"ext":".go"} # 例: http://example.com/notifier/fileboy-listener # 不启用通知,请留空 "" @@ -104,13 +104,13 @@ var logo = ` _____ _ | | _____ ____) ) | | | |___| | | ___) | | | | | ___) | __ (| | | |\_____/ | | _| |_| |_____| |_____| |__) ) |___| | ___ -|_| (_____)_______)_______)______/ \_____/ (___) V1.8 +|_| (_____)_______)_______)______/ \_____/ (___) V1.9 ` var statement = `Dengsgo [dengsgo@gmail.com] Open Source with MIT License` var versionDesc = ` - Version fileboy: v1.8 filegirl: v` + strconv.Itoa(Version) + ` -Released 2019.2.27 + Version fileboy: v1.9 filegirl: v` + strconv.Itoa(Version) + ` +Released 2019.4.3 Licence MIT Author dengsgo [dengsgo@gmail.com] Website https://github.com/dengsgo/fileboy