Skip to content

Commit

Permalink
Avoid unnecessary conversion (#502)
Browse files Browse the repository at this point in the history
No need to convert here.
  • Loading branch information
muesli authored and elithrar committed Jul 20, 2019
1 parent d83b6ff commit 50fbc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux_test.go
Expand Up @@ -1943,7 +1943,7 @@ type TestA301ResponseWriter struct {
}

func (ho *TestA301ResponseWriter) Header() http.Header {
return http.Header(ho.hh)
return ho.hh
}

func (ho *TestA301ResponseWriter) Write(b []byte) (int, error) {
Expand Down

0 comments on commit 50fbc3e

Please sign in to comment.