Skip to content

Commit

Permalink
Merge pull request #8 from Dynatrace/Add-iOrigin-Header
Browse files Browse the repository at this point in the history
Add iOrigin Header and update Readme link
  • Loading branch information
DTMad authored Feb 13, 2019
2 parents c722f2d + c779821 commit 7b26d07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This buildpack deploys the [Dynatrace OneAgent] to automatically monitor the per

### Installation

To integrate Dynatrace OneAgent into your existing project you need to add the Dynatrace buildpack to your project's buildpacks and set your Dynatrace environment ID and token. For complete details, please see the [Dynatrace Heroku installation guidelines](https://www.dynatrace.com/support/help/cloud-platforms/).
To integrate Dynatrace OneAgent into your existing project you need to add the Dynatrace buildpack to your project's buildpacks and set your Dynatrace environment ID and token. For complete details, please see the [Dynatrace Heroku installation guidelines](https://www.dynatrace.com/support/help/cloud-platforms/heroku/how-do-i-monitor-heroku-applications/).

```shell
# Add the Dynatrace buildpack
Expand Down
5 changes: 3 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ source "$BP_DIR/lib/stdlib.sh"
downloadAgent() {
local DOWNLOADURL=$1
local INSTALLERFILE=$2
local USERAGENT='heroku/1.0'

# determine ssl mode
local SSL_INSECURE_CURL=""
Expand All @@ -30,9 +31,9 @@ downloadAgent() {
fi

if curl -h &> /dev/null ; then
local DOWNLOADCOMMAND="curl -fL --connect-timeout 10 $SSL_INSECURE_CURL ${DOWNLOADURL} -o ${INSTALLERFILE}"
local DOWNLOADCOMMAND="curl -fL --connect-timeout 10 $SSL_INSECURE_CURL ${DOWNLOADURL} -o ${INSTALLERFILE} -A ${USERAGENT}"
elif wget -h &> /dev/null ; then
local DOWNLOADCOMMAND="wget --connect-timeout=10 $SSL_INSECURE_WGET ${DOWNLOADURL} -O ${INSTALLERFILE}"
local DOWNLOADCOMMAND="wget --connect-timeout=10 $SSL_INSECURE_WGET ${DOWNLOADURL} -O ${INSTALLERFILE} --user-agent=${USERAGENT}"
else
puts_error "Neither curl nor wget executable found!"
exit 1
Expand Down

0 comments on commit 7b26d07

Please sign in to comment.