Skip to content

Commit

Permalink
Merge pull request #19 for v0.11.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevatkm authored Jul 22, 2018
2 parents d4d049f + 1c65d81 commit 4850032
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<h2 align="center">HTTP extension library by aah framework</h2>
</p>
<p align="center">
<p align="center"><a href="https://travis-ci.org/go-aah/ahttp"><img src="https://travis-ci.org/go-aah/ahttp.svg?branch=master" alt="Build Status"></a> <a href="https://codecov.io/gh/go-aah/ahttp/branch/master"><img src="https://codecov.io/gh/go-aah/ahttp/branch/master/graph/badge.svg" alt="Code Coverage"></a> <a href="https://goreportcard.com/report/aahframework.org/ahttp.v0"><img src="https://goreportcard.com/badge/aahframework.org/ahttp.v0" alt="Go Report Card"></a> <a href="https://github.com/go-aah/ahttp/releases/latest"><img src="https://img.shields.io/badge/version-0.11.0-blue.svg" alt="Release Version"></a> <a href="https://godoc.org/aahframework.org/ahttp.v0"><img src="https://godoc.org/aahframework.org/ahttp.v0?status.svg" alt="Godoc"></a> <a href="https://twitter.com/aahframework"><img src="https://img.shields.io/badge/[email protected]" alt="Twitter @aahframework"></a></p>
<p align="center"><a href="https://travis-ci.org/go-aah/ahttp"><img src="https://travis-ci.org/go-aah/ahttp.svg?branch=master" alt="Build Status"></a> <a href="https://codecov.io/gh/go-aah/ahttp/branch/master"><img src="https://codecov.io/gh/go-aah/ahttp/branch/master/graph/badge.svg" alt="Code Coverage"></a> <a href="https://goreportcard.com/report/aahframework.org/ahttp.v0"><img src="https://goreportcard.com/badge/aahframework.org/ahttp.v0" alt="Go Report Card"></a> <a href="https://github.com/go-aah/ahttp/releases/latest"><img src="https://img.shields.io/badge/version-0.11.1-blue.svg" alt="Release Version"></a> <a href="https://godoc.org/aahframework.org/ahttp.v0"><img src="https://godoc.org/aahframework.org/ahttp.v0?status.svg" alt="Godoc"></a> <a href="https://twitter.com/aahframework"><img src="https://img.shields.io/badge/[email protected]" alt="Twitter @aahframework"></a></p>
</p>

HTTP extension Library is used to handle/process Request and Response (headers, body, gzip, etc).

### News

* `v0.11.0` [released](https://github.com/go-aah/ahttp/releases/latest) and tagged on Jul 06, 2018.
* `v0.11.1` [released](https://github.com/go-aah/ahttp/releases/latest) and tagged on Jul 22, 2018.

## Installation

Expand Down
7 changes: 2 additions & 5 deletions response.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Jeevanandam M (https://github.com/jeevatkm)
// go-aah/ahttp source code and usage is governed by a MIT style
// aahframework.org/ahttp source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.

package ahttp
Expand Down Expand Up @@ -87,10 +87,8 @@ func (r *Response) BytesWritten() int {
}

// Close method closes the writer if possible.
// TODO for removal
func (r *Response) Close() error {
if w, ok := r.w.(io.Closer); ok {
return w.Close()
}
return nil
}

Expand Down Expand Up @@ -148,7 +146,6 @@ func (r *Response) Reset() {

// releaseResponse method puts response back to pool.
func releaseResponse(r *Response) {
_ = r.Close()
r.Reset()
responsePool.Put(r)
}
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
package ahttp

// Version no. of aah framework ahttp library
const Version = "0.11.0"
const Version = "0.11.1"

0 comments on commit 4850032

Please sign in to comment.