diff options
| author | Adnan Maolood <[email protected]> | 2021-03-20 12:04:42 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-20 12:04:42 -0400 |
| commit | 0a709da439969d806927dc26d47c84e8851a563c (patch) | |
| tree | 459c2864a868ada9b3051353c6dc1b9e937af455 | |
| parent | Rename ServeMux to Mux (diff) | |
| download | go-gemini-0a709da439969d806927dc26d47c84e8851a563c.tar.xz go-gemini-0a709da439969d806927dc26d47c84e8851a563c.zip | |
Remove charset=utf-8 from default media type
| -rw-r--r-- | response.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/response.go b/response.go index f25e71b..9da468c 100644 --- a/response.go +++ b/response.go @@ -10,7 +10,7 @@ import ( ) // The default media type for responses. -const defaultMediaType = "text/gemini; charset=utf-8" +const defaultMediaType = "text/gemini" // Response represents the response from a Gemini request. // @@ -142,8 +142,8 @@ func (r *Response) WriteTo(w io.Writer) (int64, error) { // has returned. type ResponseWriter interface { // SetMediaType sets the media type that will be sent by Write for a - // successful response. If no media type is set, a default of - // "text/gemini; charset=utf-8" will be used. + // successful response. If no media type is set, a default media type of + // "text/gemini" will be used. // // Setting the media type after a call to Write or WriteHeader has // no effect. @@ -154,7 +154,7 @@ type ResponseWriter interface { // If WriteHeader has not yet been called, Write calls WriteHeader with // StatusSuccess and the media type set in SetMediaType before writing the data. // If no media type was set, Write uses a default media type of - // "text/gemini; charset=utf-8". + // "text/gemini". Write([]byte) (int, error) // WriteHeader sends a Gemini response header with the provided |