tomchristie/django-rest-framework — pull request #108 by mjumbewu (2012-01-04 09:24:43+00:00)
Title: Only set the script_prefix if the prefix isn't already a full URL.

I was running into a problem in some tests against code written on top of django-rest-framework. I kept getting URLs from reverse that looked like `'http://testserverhttp://testserver/api/ activities'`. I traced the issue back to the code in this patch. At some point the script prefix was set to `'http://testserver/'`, and that was being appended to `'http://testserver'` resulting in `'http://testserverhttp://testserver/'` as the new prefix and causing a bunch of 404s.