updating gem to respect passing headers instead of params