rfc_flag=1
Don't return a trailing slash if the next-to-last element has
a dot in it (the inverse of the algorithm in APPEND_SLASH in the
common middleware)
- Legacy-Id: 488
Only pop if the key is in the dict. (Note: an alternate
implementation would have been pop(arg, '') except the QueryDict
doesn't implement that usage)
- Legacy-Id: 347
* Remove extra "/" in case the database has extra leading or trailing slashes.
* Catch KeyError, not IndexError, since that's what gets thrown in the case I was thinking about.
- Legacy-Id: 335