Skip to content

Commit 7930c41

Browse files
committed
Add Content-Type header: application/json
1 parent 4c2ecd3 commit 7930c41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func (a Agent) Status() string {
145145
}
146146

147147
func agentHandler(w http.ResponseWriter, r *http.Request) {
148+
w.Header().Set("Content-Type", "application/json")
148149
switch r.Method {
149150
case "GET":
150151
uid := r.URL.Path[len(agentAPIPath):]

0 commit comments

Comments
 (0)