Skip to content

Commit

Permalink
Merge pull request #599 from susanmary007/fix/Add-BASIC-authorization…
Browse files Browse the repository at this point in the history
…-header_v2

Extend Web::Authorization class to support BASIC header
  • Loading branch information
pwielders authored May 22, 2021
2 parents adf80e5 + 268a429 commit 8478dc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/websocket/WebRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ namespace Web {
class EXTERNAL Authorization {
public:
enum type {
BEARER
BEARER,
BASIC
};

public:
Expand Down
1 change: 1 addition & 0 deletions Source/websocket/WebSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ ENUM_CONVERSION_END(Crypto::EnumHashType)
ENUM_CONVERSION_BEGIN(Web::Authorization::type)

{ Web::Authorization::BEARER, _TXT("Bearer") },
{ Web::Authorization::BASIC, _TXT("Basic") },

ENUM_CONVERSION_END(Web::Authorization::type)

Expand Down

0 comments on commit 8478dc9

Please sign in to comment.