Skip to content

Commit

Permalink
Added fasthttp header add function
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Mar 29, 2016
1 parent f53eae1 commit d4928af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions engine/fasthttp/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type (

// Add implements `engine.Header#Add` function.
func (h *RequestHeader) Add(key, val string) {
// h.RequestHeader.Add(key, val)
h.RequestHeader.Add(key, val)
}

// Del implements `engine.Header#Del` function.
Expand Down Expand Up @@ -53,8 +53,7 @@ func (h *RequestHeader) reset(hdr *fasthttp.RequestHeader) {

// Add implements `engine.Header#Add` function.
func (h *ResponseHeader) Add(key, val string) {
// TODO: https://github.com/valyala/fasthttp/issues/69
// h.header.Add(key, val)
h.ResponseHeader.Add(key, val)
}

// Del implements `engine.Header#Del` function.
Expand Down
10 changes: 5 additions & 5 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4928af

Please sign in to comment.