# Possible regression - http requests without explicit headers are ignored

**URL:** <https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287>\
**Category:** Gatling (Open-Source)\
**Created:** [August 14, 2014, 1:51pm UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287 "2014-08-14T13:51:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.gatling.io/u/Alex)\
**Post date:** [August 14, 2014, 1:51pm UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287/1 "2014-08-14T13:51:57Z")

</div>

Hi, not sure if this kind of vague report is helpful or not, but:

We just noticed in a SNAPSHOT (downloaded from  
[https://oss.sonatype.org/content/repositories/snapshots/io/gatling/gatling-charts/2.0.0-SNAPSHOT/](https://oss.sonatype.org/content/repositories/snapshots/io/gatling/gatling-charts/2.0.0-SNAPSHOT/gatling-charts-2.0.0-SNAPSHOT.jar) at around 2230 UTC+1 on 11 August) the following:

a request like this will be honoured by gatling:

.exec(http(“request\_2”)  
.get("""/def""")  
.headers(headers\_2))

But one like this will not:

.exec(http(“request\_1”)  
.get("""/abc"""))

This bug is NOT present in 2.0.0-RC2.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 14, 2014, 2:02pm UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287/2 "2014-08-14T14:02:12Z")

</div>

What do you mean by “not honoured” ?  
On August 11th, there has been no commit impacting Gatling’s code at all, only documentation fixes.  
This looks quite strange.  
Could you elaborate ?

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.gatling.io/u/Alex)\
**Post date:** [August 14, 2014, 3:10pm UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287/3 "2014-08-14T15:10:50Z")

</div>

The request without the headers call is never run, or if it is…it doesn’t get reported on.

We were using SNAPSHOTs until 12 August, when we switched to RC2, so it might not be from 12 August directly.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 14, 2014, 8:55pm UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287/4 "2014-08-14T20:55:08Z")

</div>

I’ll investigate then 🙂

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 15, 2014, 11:28am UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287/5 "2014-08-15T11:28:43Z")

</div>

Sorry, but I can’t reproduce on my side: I’m using a snapshot built locally and have a simulation with no header set anywhere, except those computed automatically by Gatling and all request are executed, as expected.

Could you provide your simulation so that I can investigate further ?

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 15, 2014, 5:43pm UTC](https://community.gatling.io/t/possible-regression-http-requests-without-explicit-headers-are-ignored/1287/6 "2014-08-15T17:43:49Z")

</div>

Do you have both requests in the same scenario, hitting the same URL ?  
It could be that the second request doesn’t show simply because Gatling cached the first.
