Actually, the request should never have a relative URI in spray-routing. We just found out that it is a bug that you are able to write tests which produce relative URIs. I would suggest you just remove this sentence.