Skip to content

Commit 8478dc9

Browse files
authored
Merge pull request #599 from susanmary007/fix/Add-BASIC-authorization-header_v2
Extend Web::Authorization class to support BASIC header
2 parents adf80e5 + 268a429 commit 8478dc9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/websocket/WebRequest.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ namespace Web {
157157
class EXTERNAL Authorization {
158158
public:
159159
enum type {
160-
BEARER
160+
BEARER,
161+
BASIC
161162
};
162163

163164
public:

Source/websocket/WebSerializer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ ENUM_CONVERSION_END(Crypto::EnumHashType)
311311
ENUM_CONVERSION_BEGIN(Web::Authorization::type)
312312

313313
{ Web::Authorization::BEARER, _TXT("Bearer") },
314+
{ Web::Authorization::BASIC, _TXT("Basic") },
314315

315316
ENUM_CONVERSION_END(Web::Authorization::type)
316317

0 commit comments

Comments
 (0)