Skip to content

Commit

Permalink
Add Server field in HTTP API
Browse files Browse the repository at this point in the history
Resolves #625
  • Loading branch information
Kubuxu committed Dec 31, 2015
1 parent 65785e0 commit bc260cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ func sendResponse(w http.ResponseWriter, r *http.Request, res cmds.Response, req
h.Set("Access-Control-Allow-Headers", "X-Stream-Output, X-Chunked-Output")
// expose those headers
h.Set("Access-Control-Expose-Headers", "X-Stream-Output, X-Chunked-Output")

// Expose our agent to allow identification
h.Set("Server", "go-ipfs/" + config.CurrentVersionNumber)

if r.Method == "HEAD" { // after all the headers.
return
}
Expand Down

0 comments on commit bc260cd

Please sign in to comment.