mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-23 22:26:29 +00:00
Change response content type to text/plain
- bump version 0.0.8
This commit is contained in:
@@ -5,7 +5,7 @@ backend: http://backend-podinfo:9898/echo
|
||||
|
||||
image:
|
||||
repository: stefanprodan/podinfo
|
||||
tag: 0.0.7
|
||||
tag: 0.0.8
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
|
||||
@@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: podinfod
|
||||
image: stefanprodan/podinfo:0.0.1
|
||||
image: stefanprodan/podinfo:0.0.8
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- ./podinfo
|
||||
|
||||
@@ -37,7 +37,7 @@ spec:
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
containers:
|
||||
- name: probe
|
||||
image: stefanprodan/podinfo:0.0.7
|
||||
image: stefanprodan/podinfo:0.0.8
|
||||
command:
|
||||
- ./podinfo
|
||||
- -port=9898
|
||||
|
||||
@@ -36,7 +36,7 @@ func (s *Server) index(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "text/x-yaml; charset=utf-8")
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write(d)
|
||||
@@ -209,7 +209,7 @@ func (s *Server) version(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "text/x-yaml; charset=utf-8")
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write(d)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package version
|
||||
|
||||
var VERSION = "0.0.7"
|
||||
var VERSION = "0.0.8"
|
||||
var GITCOMMIT = "unknown"
|
||||
|
||||
Reference in New Issue
Block a user