Skip to content

went through entire function and found below issues #158

@iamitprakash

Description

@iamitprakash
          went through entire function and found below issues
  1. This function returns a function with three return values. But your handleMiddlewareResponse only returns two values.
  2. use below code to parsing cookies from the header.
header := http.Header{}
for k, v := range req.Headers {
	header.Set(k, v)
}
reqCookies := header["Cookie"]

  1. You are ignoring the error here. If LoadEnvConfig() fails, it might return empty/default config which could result in missing cookieName.

Originally posted by @iamitprakash in #157 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions