Skip to content

Instantly share code, notes, and snippets.

@jdee
Created October 19, 2010 22:15
Show Gist options
  • Save jdee/635256 to your computer and use it in GitHub Desktop.
Save jdee/635256 to your computer and use it in GitHub Desktop.
same on OS X
from my little java app:
request.env['CONTENT_TYPE']="application/edi-hl7v2"
request.env['Content-Type']=nil
request['CONTENT_TYPE']=nil
request['Content-Type']=nil
request.format=#<Mime::Type:0x453e22ee @synonyms=["application/edi-hl7"], @string="application/edi-hl7v2", @symbol=:hl7>
from the ruby API script:
request.env['CONTENT_TYPE']="application/edi-hl7v2"
request.env['Content-Type']=nil
request['CONTENT_TYPE']=nil
request['Content-Type']=nil
request.format=#<Mime::Type:0xbdceeb2 @synonyms=[], @string="*/*", @symbol=:all>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment