cossme / grinder

The Grinder, a Java Load Testing Framework
Other
37 stars 15 forks source link

Ignoring Content-type #32

Closed panyapro closed 4 years ago

panyapro commented 4 years ago

Hello. I have some api, which require set Content-type for GET request without request data. But grinder discard it create_request(self, test, headers): request = HTTPRequest(url=self.host_url) headers.append(NVPair("Content-type", "application/json; charset=utf-8")) headers.append(NVPair("Accept", "application/json")) headers.append(NVPair("Protection-Token", "Protection-Token-Value")) request.setHeaders(headers) return request I have found it place - HTTPClient.HTTPConnection#assembleHeaders Could you fix it

solcyr commented 4 years ago

Hi @panyapro, A fix has been done for this issue in the 4.0.2-SNAPSHOT release.