hunk.code_window: 			token = ""
   		}
   	}
   	c.SetSiteURLHeader(app.GetProtocol(r) + "://" + r.Host)
   	w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)
   	w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v.%v.%v", model.CurrentVersion, model.BuildNumber, c.App.ClientConfigHash(), c.App.License() != nil))
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: 	subpath, _ := utils.GetSubpathFromConfig(c.App.Config())
   	siteURLHeader := app.GetProtocol(r) + "://" + r.Host + subpath
   	c.SetSiteURLHeader(siteURLHeader)
  
hunk.file_path: web/handlers.go
hunk.type: replace
file: language: go
  
  go:
    - 1.8.x
    - 1.9.x
    - 1.10.x
    - master
  
  sudo: true
  
  env:
    global:
      - PGUSER=postgres
      - PQGOSSLTESTS=1
      - PQSSLCERTTEST_PATH=$PWD/certs
      - PGHOST=127.0.0.1
      - MEGACHECK_VERSION=2017.2.2
    matrix:
      - PGVERSION=10
      - PGVERSION=9.6
      - PGVERSION=9.5
      - PGVERSION=9.4
      - PGVERSION=9.3
      - PGVERSION=9.2
      - PGVERSION=9.1
      - PGVERSION=9.0
  
  before_install:
    - ./.travis.sh postgresql_uninstall
    - ./.travis.sh pgdg_repository
    - ./.travis.sh postgresql_install
    - ./.travis.sh postgresql_configure
    - ./.travis.sh client_configure
    - ./.travis.sh megacheck_install
    - ./.travis.sh golint_install
    - go get golang.org/x/tools/cmd/goimports
  
  before_script:
    - createdb pqgotest
    - createuser -DRS pqgossltest
    - createuser -DRS pqgosslcert
  
  script:
    - >
      goimports -d -e $(find -name '*.go') | awk '{ print } END { exit NR == 0 ? 0 : 1 }'
    - go vet ./...
    - megacheck -go 1.8 ./...
    - golint ./...
    - PQTEST_BINARY_PARAMETERS=no  go test -race -v ./...
    - PQTEST_BINARY_PARAMETERS=yes go test -race -v ./...
  