defnull/bottle — pull request #566 by ergoithz (2013-12-19 22:55:27+00:00)
Title: Fixed path being unshifted before returned generator exhausted.

I've experienced some request issues on long generator routes, mainly related to SCRIPT_NAME and PATH_INFO changing between yields.
After some debugging I've realized path_shift was being called before yielding, breaking all get_url calls on my partial templates.
This patch fixes that chaining the path_shift to response body, instead of calling right after return.