mirror of
				https://github.com/beego/bee.git
				synced 2025-11-04 09:23:24 +00:00 
			
		
		
		
	fix the typo
This commit is contained in:
		@@ -71,13 +71,14 @@ func init() {
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
func urlReplace(src string) string {
 | 
			
		||||
	pt := strings.Split(src, "/")
 | 
			
		||||
	for i, p := range pt {
 | 
			
		||||
		if len(p) > 0 {
 | 
			
		||||
			if p[0] == ':' {
 | 
			
		||||
				pt[i] = "{" + p[1:] + "}"
 | 
			
		||||
			} else if p[0] == "?" && p[1] == ":" {
 | 
			
		||||
			} else if p[0] == '?' && p[1] == ':' {
 | 
			
		||||
				pt[i] = "{" + p[2:] + "}"
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user