Set charset=utf-8 in Content-Type header
This commit is contained in:
		
					parent
					
						
							
								cf9678d712
							
						
					
				
			
			
				commit
				
					
						bc299d4c70
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -27,7 +27,7 @@ func Root(resp *types.SpaceAPIResponseV14) func(http.ResponseWriter, *http.Reque
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		w.Header().Set("Access-Control-Allow-Origin", "*")
 | 
							w.Header().Set("Access-Control-Allow-Origin", "*")
 | 
				
			||||||
		w.Header().Set("Content-Type", "application/json")
 | 
							w.Header().Set("Content-Type", "application/json; charset=utf-8")
 | 
				
			||||||
		_, _ = w.Write(response)
 | 
							_, _ = w.Write(response)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue