Fixed an issue in setting content-type header while attaching files to the request.