Trim white space from Transfer-Encoding header

While writing a few Tsung tests I had an issue with the Transfer-Encoding header value. I was receiving the following error:

=INFO REPORT==== 6-Nov-2012::14:00:13 ===
      ts_http_common:(5:<0.109.0>) Unknown transfer encoding "  chunked"

=INFO REPORT==== 6-Nov-2012::14:00:13 ===
      ts_http_common:(3:<0.109.0>) Error: HTTP Body (39)> Content-Length (0) !

which resulted from the following header:

Transfer-Encoding:  chunked

(Observe the extra spaces before the header value.)

I have attached my attempt at patching Tsung by whitespace trimming the value before matching the "chunked" key.