I'm doing an http request in ruby:
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Post.new(uri.path)
req.body = payload
req['customeheader'] = 'xxxxxxxxx'
http.set_debug_output $stdout
I have debug switched on and when the request is posted I can see the header is being posted as:
Customheader: xxxxxxxxx
Is there anyway to stop this, the third party server I'm posting to is giving an error because the header name isn't correct - it's expecting customheader: