Skip to content

Commit

Permalink
Small clean up items
Browse files Browse the repository at this point in the history
  • Loading branch information
seanfisher committed Jun 6, 2016
1 parent d972d52 commit e50fa86
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/angular-oauth1-client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! angular-oauth1-client - v0.1.12 - 2016-05-11
/*! angular-oauth1-client - v0.1.12 - 2016-06-06
* https://github.com/seanfisher/angular-oauth1-client
* Copyright (c) 2016 Sean Fisher; Licensed */
(function(window, angular, undefined) {'use strict';
Expand Down Expand Up @@ -380,7 +380,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
if (signer) {
signer.method = method;
signer.url = url;
headers['Authorization'] = "OAuth " + signer.authorizationHeader()
headers['Authorization'] = "OAuth " + signer.authorizationHeader();
}
return headers;
},
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-oauth1-client.min.js

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

3 changes: 2 additions & 1 deletion src/angular-oauth1-client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*global window: false */
(function(window, angular, undefined) {'use strict';

angular.module('oauth1Client', ['LocalStorageModule'])
Expand Down Expand Up @@ -377,7 +378,7 @@ angular.module('oauth1Client', ['LocalStorageModule'])
if (signer) {
signer.method = method;
signer.url = url;
headers['Authorization'] = "OAuth " + signer.authorizationHeader()
headers['Authorization'] = "OAuth " + signer.authorizationHeader();
}
return headers;
},
Expand Down
2 changes: 1 addition & 1 deletion test/oauth1AuthorizedHttp.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('oauth1AuthorizedHttp', function() {
$httpBackend.when('GET', '/foo/bar').respond(function(method, url, data, headers) {
expect(headers['Authorization']).toBe('OAuth oauth_consumer_key="boshGesvuWojyemWicsoshEctUsicEpt", oauth_nonce="corWyctucdeWeizufCerkyodPhivcuIt", oauth_timestamp="314159", oauth_signature_method="HMAC-SHA1", oauth_token="OtDohepDyikAjMatbealCecdixJucgee", oauth_version="1.0", oauth_signature="Qmhw%2Bz1oQ5bQhPt82ZONhHhV%2FKI%3D"');
expect(headers['Content-Type']).toBe('application/x-www-form-urlencoded; charset=UTF-8');
expect(data).toBe('{"foo":"bar"}'); // FIXME should be object!?
expect(data).toBe('{"foo":"bar"}');
return headers;
});
$httpBackend.expectGET('/foo/bar');
Expand Down

0 comments on commit e50fa86

Please sign in to comment.