Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruipenso committed Feb 12, 2016
1 parent 946048b commit 49341f2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

### upcoming / 2016-02-12
- [#80](https://github.com/seegno/angular-oauth2/pull/80) Reintroduce authorization header to be overridden (@ruipenso)

### 3.1.1 / 2016-02-12
- [#79](https://github.com/seegno/angular-oauth2/pull/79) Update dependencies (@ruipenso)

Expand Down Expand Up @@ -42,4 +45,4 @@

### 1.0.0 / 2015-01-18
- [#2](https://github.com/seegno/angular-oauth2/pull/2) Fix indentation in README examples (@fixe)
- [#1](https://github.com/seegno/angular-oauth2/pull/1) Add project structure (@ruipenso)
- [#1](https://github.com/seegno/angular-oauth2/pull/1) Add project structure (@ruipenso)
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-oauth2",
"version": "3.1.1",
"version": "4.0.0",
"description": "AngularJS OAuth2",
"main": "./dist/angular-oauth2.js",
"authors": [
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-oauth2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* angular-oauth2 - Angular OAuth2
* @version v3.1.1
* @version v4.0.0
* @link https://github.com/seegno/angular-oauth2
* @license MIT
*/
Expand All @@ -21,8 +21,8 @@
function oauthInterceptor($q, $rootScope, OAuthToken) {
return {
request: function request(config) {
if (OAuthToken.getAuthorizationHeader()) {
config.headers = config.headers || {};
config.headers = config.headers || {};
if (!config.headers.hasOwnProperty("Authorization") && OAuthToken.getAuthorizationHeader()) {
config.headers.Authorization = OAuthToken.getAuthorizationHeader();
}
return config;
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-oauth2.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-oauth2",
"version": "3.1.1",
"version": "4.0.0",
"description": "Angular OAuth2",
"main": "./dist/angular-oauth2.js",
"repository": {
Expand Down

0 comments on commit 49341f2

Please sign in to comment.