Get the first scheme received in HTTP_X_FORWARDED_PROTO header.

....
Was wrong copy&paste!

It's fixed now!

On Tue, Oct 28, 2014 at 4:46 PM, Brian Rue <notifications@github.com> wrote:

> In spec/rollbar/middleware/rack/builder_spec.rb:
>
> > +    it 'will send the url_scheme set by Rack' do
> > +      expect do
> > +        request.post('/will_crash')
> > +      end.to raise_error(exception)
> > +
> > +      last_report = Rollbar.last_report
> > +      expect(last_report[:request][:url]).to match(/http:/)
> > +    end
> > +  end
> > +
> > +  context 'with single HTTP_X_FORWARDED_PROTO value' do
> > +    let(:headers) do
> > +      { 'HTTP_X_FORWARDED_PROTO' => 'https' }
> > +    end
> > +
> > +    it 'will send the url_scheme set by Rack' do
>
> This description looks incorrect?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/rollbar/rollbar-gem/pull/158/files#r19479884>.
>



-- 
Jon