upgrade to gatling 2.2.2 http header .connection("close") error

Hi,

The following code works fine in getling 2.1.3 but through out error for .connection(“close”)

var httpProtocol = http
.baseURL(“http://google.com”)
.acceptEncodingHeader(“gzip, deflate”)
.acceptLanguageHeader(“en-US,en;q=0.5”)
.connection(“close”)

17:39:57.910 [ERROR] i.g.c.ZincCompiler$ - C:\GitProjects\OBill_OBR\gatling-dev222\user-files\simulations\webs_OBR\OBR_Scenario_Lo
adTest.scala:404: value connection is not a member of io.gatling.http.protocol.HttpProtocolBuilder
possible cause: maybe a semicolon is missing before `value connection’?
17:39:57.912 [ERROR] i.g.c.ZincCompiler$ - .connection(“close”)

In gatling 2.2.2, how do I set my default to connection to close?

Thanks.

connectionHeader?

https://github.com/gatling/gatling/blob/master/gatling-http/src/main/scala/io/gatling/http/protocol/HttpProtocolBuilder.scala

Checking migration guides when upgrading usually helps.

Got it. Thanks