Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for localRedirect (0.13 sec)

  1. src/net/http/fs.go

    				serveError(w, msg, StatusInternalServerError)
    				return
    			}
    			localRedirect(w, r, "../"+base)
    			return
    		}
    	}
    
    	if d.IsDir() {
    		url := r.URL.Path
    		// redirect if the directory name doesn't end in a slash
    		if url == "" || url[len(url)-1] != '/' {
    			localRedirect(w, r, path.Base(url)+"/")
    			return
    		}
    
    		// use contents of index.html for directory, if present
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 17:06:47 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top