jabols / raft

Automatically exported from code.google.com/p/raft
GNU General Public License v3.0
0 stars 0 forks source link

Requestor does not handle URLs with no path #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enter a URL of http://www.google.com
2. Press the Send button
3. No data is returned and debug log throws exception

What is the expected output? What do you see instead?

Would expect the response to be successful and the code to assume a path of '/'
No data is returned and application throws an exception in the console output

What version of the product are you using? On what operating system?

2011.7.14-alpha
Fedora 15

Please provide any additional information below.

This can be fixed by modifying tabs/RequestorTab.py, build_replacements def; 
only modified lines are shown:

replacements['path'] = splitted.path or '/'

replacements['request_uri'] = urlparse.urlunsplit(('', '', 
replacements['path'], replacements['query'], ''))

Original issue reported on code.google.com by kelle...@gmail.com on 6 Aug 2011 at 3:19

GoogleCodeExporter commented 8 years ago
Thanks for the first official bug report outside of the dev team.  Issue has 
been fixed based on code submitted.

Original comment by seth.w.law@gmail.com on 6 Aug 2011 at 10:09