---
title: "non-canonical-header"
description: "Detect non-canonical constant keys in http.Header reads."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# non-canonical-header

**Default severity:** `warning`

Direct map reads do not canonicalize header keys. Header method calls and map
writes are not reported.

## Bad

```go
value := header["content-type"]
```

## Good

```go
value := header["Content-Type"]
```

Source: https://strider.gempir.com/analyzers/non-canonical-header/index.mdx
