spray/spray — Issue #57: Reject CONNECT messages early
Author: sirthias
Created: 2011-11-15 10:24:50+00:00
State: open
Labels: Improvement

in order to avoid error messages like these:

ERROR cc.spray.SprayCanRootService - Error during processing of request HttpRequest(CONNECT,203.188.201.208:25,List(),[B@34b97789,HTTP/1.0)
java.net.URISyntaxException: Illegal character in scheme name at index 0: 203.188.201.208:25
at java.net.URI$Parser.fail(URI.java:2809) ~[na:1.6.0_24]
at java.net.URI$Parser.checkChars(URI.java:2982) ~[na:1.6.0_24]
...