Skip to content

Commit 49341f2

Browse files
committed
Release 4.0.0
1 parent 946048b commit 49341f2

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
### upcoming / 2016-02-12
4+
- [#80](https://github.com/seegno/angular-oauth2/pull/80) Reintroduce authorization header to be overridden (@ruipenso)
5+
36
### 3.1.1 / 2016-02-12
47
- [#79](https://github.com/seegno/angular-oauth2/pull/79) Update dependencies (@ruipenso)
58

@@ -42,4 +45,4 @@
4245

4346
### 1.0.0 / 2015-01-18
4447
- [#2](https://github.com/seegno/angular-oauth2/pull/2) Fix indentation in README examples (@fixe)
45-
- [#1](https://github.com/seegno/angular-oauth2/pull/1) Add project structure (@ruipenso)
48+
- [#1](https://github.com/seegno/angular-oauth2/pull/1) Add project structure (@ruipenso)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-oauth2",
3-
"version": "3.1.1",
3+
"version": "4.0.0",
44
"description": "AngularJS OAuth2",
55
"main": "./dist/angular-oauth2.js",
66
"authors": [

dist/angular-oauth2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-oauth2 - Angular OAuth2
3-
* @version v3.1.1
3+
* @version v4.0.0
44
* @link https://github.com/seegno/angular-oauth2
55
* @license MIT
66
*/
@@ -21,8 +21,8 @@
2121
function oauthInterceptor($q, $rootScope, OAuthToken) {
2222
return {
2323
request: function request(config) {
24-
if (OAuthToken.getAuthorizationHeader()) {
25-
config.headers = config.headers || {};
24+
config.headers = config.headers || {};
25+
if (!config.headers.hasOwnProperty("Authorization") && OAuthToken.getAuthorizationHeader()) {
2626
config.headers.Authorization = OAuthToken.getAuthorizationHeader();
2727
}
2828
return config;

dist/angular-oauth2.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-oauth2",
3-
"version": "3.1.1",
3+
"version": "4.0.0",
44
"description": "Angular OAuth2",
55
"main": "./dist/angular-oauth2.js",
66
"repository": {

0 commit comments

Comments
 (0)