Skip to content

Commit 1fbb69a

Browse files
committed
save the byte allocations
1 parent 459c705 commit 1fbb69a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/coderd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ func New(options *Options) *API {
13791379
r.Get("/swagger/*", swaggerDisabled)
13801380
}
13811381

1382-
additionalCSPHeaders := make(map[httpmw.CSPFetchDirective][]string)
1382+
additionalCSPHeaders := make(map[httpmw.CSPFetchDirective][]string, len(api.DeploymentValues.AdditionalCSPPolicy))
13831383
var cspParseErrors error
13841384
for _, v := range api.DeploymentValues.AdditionalCSPPolicy {
13851385
// Format is "<directive> <value> <value> ..."

0 commit comments

Comments
 (0)