Strip context path correctly if deployed to the root context

VRaptor is currently not stripping the context path correctly if the app is deployed to the root context path.

For ordinary context paths like `/myapp` it works fine:

    /myapp/somepage     ->     /somepath

But for the root context path `/` it is not correct:

    /somepage     ->     somepath

This pull request fixes the problem. I hope I found all the relevant places. :)
I'm on my phone and on vacation right now, so this will be short...

I had this issue with Undertow, which is the Servlet container of Wildfly.

And yeah, sure, I can refactor the patch. Creating a single static method
for this makes sense. I'll do this next week after returning from vacation.
Am 06.08.2014 21:17 schrieb "csokol" <notifications@github.com>:

> In
> vraptor-core/src/main/java/br/com/caelum/vraptor/http/VRaptorRequest.java:
>
> >  		return uri.replaceFirst("(?i);jsessionid=.*$", "");
> >  	}
> >
> > +	private String stripContextPath(String uri) {
> > +		if ("/".equals(getContextPath())) {
> > +			return uri;
> > +		}
> > +		return uri.substring(getContextPath().length());
> > +	}
>
> Fine for me :D
> @chkal <https://github.com/chkal>, what do you think? do you want to
> refactor that code extracting a static method and reuse it in both classes?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/caelum/vraptor4/pull/731/files#r15896613>.
>