Browse Source

Merge pull request #770 from shawnps/patch-1

Fix comment typo
Xiang Li 11 years ago
parent
commit
e11fd7cd40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http/cors.go

+ 1 - 1
http/cors.go

@@ -56,7 +56,7 @@ func (h *CORSHandler) addHeader(w http.ResponseWriter, origin string) {
 	w.Header().Add("Access-Control-Allow-Origin", origin)
 	w.Header().Add("Access-Control-Allow-Origin", origin)
 }
 }
 
 
-// ServeHTTP adds the correct CORS headers based on the origin and returns immediatly
+// ServeHTTP adds the correct CORS headers based on the origin and returns immediately
 // with a 200 OK if the method is OPTIONS.
 // with a 200 OK if the method is OPTIONS.
 func (h *CORSHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 func (h *CORSHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 	// Write CORS header.
 	// Write CORS header.