remove http writer
This commit is contained in:
parent
3c1b670663
commit
6a2e9d294d
1
http.go
1
http.go
|
@ -29,6 +29,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
var route string
|
var route string
|
||||||
route = cleanURL(r.URL.Path)
|
route = cleanURL(r.URL.Path)
|
||||||
log.HttpMode(w)
|
log.HttpMode(w)
|
||||||
|
defer log.HttpMode(nil)
|
||||||
|
|
||||||
// common http args that can be set
|
// common http args that can be set
|
||||||
repoName := r.URL.Query().Get("repo")
|
repoName := r.URL.Query().Get("repo")
|
||||||
|
|
2
main.go
2
main.go
|
@ -24,7 +24,7 @@ func main() {
|
||||||
me.releaseReasonS = os.Getenv("GUIRELEASE_REASON")
|
me.releaseReasonS = os.Getenv("GUIRELEASE_REASON")
|
||||||
|
|
||||||
if me.releaseReasonS == "" {
|
if me.releaseReasonS == "" {
|
||||||
log.Info("GUIRELEASE_VERSION not set")
|
log.Info("shell ENV GUIRELEASE_REASON not set")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue