bastion-dev / Bastion

Java test library for HTTP APIs
http://bastion.rocks
GNU General Public License v3.0
13 stars 8 forks source link

Properly applying headers to executableHttpRequest #70

Closed FrelliBB closed 7 years ago

FrelliBB commented 7 years ago

There was a small bug with the way that headers are being applied to the executableHttpRequest which resulted in the Content-Type header not being added properly.

This was happening in the case where a Content-Type header is not manually supplied but is added via the #contentType() method in Bastion's HttpRequest.

Also made some minor simplifications to the syntax.

FrelliBB commented 7 years ago

I've fixed the failing test.

KPull commented 7 years ago

Everything seems ok. Good catch! Merging. :shipit: