mirror of
https://codeberg.org/vlw/gcf-sheets-api.git
synced 2025-09-14 04:13:41 +02:00
fix: correct Content-Type response header
This commit is contained in:
parent
f9c39d183b
commit
3829b395cb
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ func getSheetData(sheet *RawSheetData) string {
|
|||
|
||||
// Create JSON response from sheet data
|
||||
func httpResponse(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json");
|
||||
fmt.Fprint(w, getSheetData(sheetDataToStruct()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue