chore(deps): bump golang from 1.16.6 to 1.17.0 in /.github/go (#185)
* chore(deps): bump golang from 1.16.6 to 1.17.0 in /.github/go Bumps golang from 1.16.6 to 1.17.0. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: guard against writing HTTP Status 0 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@ import (
|
||||
func TestErrorJSONSetsAppJsonContentType(t *testing.T) {
|
||||
w := httptest.NewRecorder()
|
||||
|
||||
httperror.ErrorJSON(w, "Not Important Here", 0)
|
||||
httperror.ErrorJSON(w, "Not Important Here", 500)
|
||||
|
||||
if v := w.Result().Header.Get("Content-Type"); v != "application/json; charset=utf-8" {
|
||||
t.Errorf("Content-Type header mismatch. Expected: %q, got: %q", "application/json; charset=utf-8", v)
|
||||
|
||||
Reference in New Issue
Block a user