Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 3, 2017
2 parents 47f556a + 4c0e425 commit 4d9449d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,13 @@
<a name="1.0.12"></a>
## [1.0.12](https://github.com/adonisjs/adonis-vow/compare/v1.0.11...v1.0.12) (2017-10-03)


### Features

* **api-request:** add accept method ([de6c0f2](https://github.com/adonisjs/adonis-vow/commit/de6c0f2))



<a name="1.0.11"></a>
## [1.0.11](https://github.com/adonisjs/adonis-vow/compare/v1.0.10...v1.0.11) (2017-09-26)

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@adonisjs/vow",
"version": "1.0.11",
"version": "1.0.12",
"description": "Test runner for Adonis framework with batteries included 🔋",
"main": "index.js",
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions src/ApiClient/Request.js
Expand Up @@ -218,6 +218,20 @@ module.exports = function (BaseRequest, Response) {
return this
}

/**
* Add accepts header
*
* @method accept
*
* @param {String} value
*
* @chainable
*/
accept (...args) {
this._agent.accept(...args)
return this
}

/* istanbul ignore next */
/**
* Set `Access-Control-Allow-Origin` header
Expand Down

0 comments on commit 4d9449d

Please sign in to comment.