• Toby Allen's avatar
    httpserver: Leave %2f encoded when trimming path in site address Fix #1927 (#2014) · faa5248d
    Toby Allen authored
    * Trim path prefix using EscapedPath()
    
    * clarify comments
    
    * Added Tests for trimPathPrefix
    
    * Ensure path with trailing slash is properly trimmed
    
    * Updated tests to match prepatch behaviour
    
    * Updated tests to match prepatch behaviour
    
    * call parse on url rather than instance
    
    * add additional tests
    
    * return unmodified url if error.  Additional tests
    faa5248d
server.go 17.2 KB