B4J Question Server URL case sensitive

Discussion in 'B4J Questions' started by tchart, Jun 26, 2015.

  1. tchart

    tchart Active Member Licensed User

    Having use java Web servers before I realize Jetty is case sensitive when it comes to URLs (or is the handler the problem?)

    Is there a way to make it not care about case like IIS does?

    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can add a filter that will catch all requests and change the url to lower case.
     
  3. tchart

    tchart Active Member Licensed User

    Thanks Erel. I've moved all of my URL's to just use lower case for now.

    I however did see (during my searches) that setting setCheckAliases to true will remove cases sensitivity but I noticed this method isn't available in your Jetty library (i.e. its missing under org.eclipse.jetty.util.resource.FileResource)
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    This is relevant to file resources only (and will only be case insensitive on Windows).
     
Loading...