Add 'Server' HTTP header with current GoTTY version

$ curl -I http://gotty.server/
    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Content-Length: 407
    Content-Type: text/html; charset=utf-8
    Last-Modified: Fri, 02 Oct 2015 08:04:28 GMT
    Server: GoTTY/0.0.10
    Date: Fri, 02 Oct 2015 08:04:28 GMT
This commit is contained in:
Manfred Touron 2015-10-02 10:01:37 +02:00
parent 096f77c780
commit f75cc9771a
No known key found for this signature in database
GPG key ID: 0DCB9CE0CABAE1B5
2 changed files with 12 additions and 1 deletions

View file

@ -13,7 +13,7 @@ import (
func main() {
cmd := cli.NewApp()
cmd.Version = "0.0.10"
cmd.Version = app.Version
cmd.Name = "gotty"
cmd.Usage = "Share your terminal as a web application"
cmd.HideHelp = true