From 4f8d0d42850c848c30460727420ee9bf9f81551d Mon Sep 17 00:00:00 2001 From: Mohammad Omar Date: Tue, 4 Jul 2023 03:12:12 +0530 Subject: [PATCH] correct the typo of content-type --- 24buildapi/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/24buildapi/main.go b/24buildapi/main.go index 8853786..779c9e3 100644 --- a/24buildapi/main.go +++ b/24buildapi/main.go @@ -70,7 +70,7 @@ func getAllCourses(w http.ResponseWriter, r *http.Request) { func getOneCourse(w http.ResponseWriter, r *http.Request) { fmt.Println("Get one course") - w.Header().Set("Content-Type", "applicatioan/json") + w.Header().Set("Content-Type", "application/json") // grab id from request params := mux.Vars(r)