Precisely. Since you're already using superagent, I tried to be as straight-forward as possible and went ahead to comply with its standard, so we're on the same page. Also, the code would inherit any future add-ons from superagent itself.

I know it's a pretty minimal addition to the codebase, but I didn't find any other way of setting custom headers to the autocomplete request.