Found a bug in SipperHttpRequestDispatcher

7 views
Skip to first unread message

phoenix6789

unread,
Jan 20, 2010, 11:33:19 PM1/20/10
to Sipper
Hi,

I've been trying to figure out to send HTTP requests for the last
couple of hours, and I thought it was how I was specifying the
parameters in the session.send_http_post_to() method. But it's
actually a bug.

..\Sipper-2.0.0\sipper\sipper_http\sipper_http_request_dispatcher.rb,
around line 70 or so in the start() method, there is this block of
code:

<snip>
hdr_arr.each do |k, v|
req[k] = v
end
<snip>

Which loops through a user provided hash of headers for the http
request. When Ruby tries to resolve hdr_arr it blows up because it's
missing the url_context qualifier:

Fixed version:
<snip>
url_context.hdr_arr.each do |k, v|
req[k] = v
end
<snip>

regards,

Dave Adams

nishant bansal

unread,
Jan 21, 2010, 4:55:35 AM1/21/10
to sip...@googlegroups.com
The fix has already been submitted on 22nd Dec-09, revision - 236.
Please check out the latest code.

Regards,
Nishant

--
You received this message because you are subscribed to the Google Groups "Sipper" group.
To post to this group, send email to sip...@googlegroups.com.
To unsubscribe from this group, send email to sipper+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sipper?hl=en.






--
Cheers
Reply all
Reply to author
Forward
0 new messages