Skip to content

Commit

Permalink
Merge pull request #471 from zowe/v2.x/feature/tokenEnd
Browse files Browse the repository at this point in the history
Move debug messages out of the loop
  • Loading branch information
JoeNemo authored Aug 14, 2024
2 parents f58ed6d + c4aa6dd commit 3748d94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Zowe Common C Changelog

## `2.18.0`
- Minor `components.zss.logLevels._zss.httpserver=5` debug messages enhancement (#471)

## `2.17.0`
- Fixed `xplatform.loadFileUTF8` when trying to open nonexistent file (#454)
- Bugfix: fix an incorrect check in the recovery router code which might lead to
Expand Down
4 changes: 2 additions & 2 deletions c/httpserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2846,9 +2846,9 @@ int extractBasicAuth(HttpRequest *request, HttpHeader *authHeader){
char *authString = NULL;
AUTH_TRACE("start authEnd loop\n");
while ((authEnd < headerLength) && (ebcdicHeader[authEnd] > 0x041)){
zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG3, "authEnd=%d\n",authEnd);
authEnd++;
}
zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG3, "authEnd=%d\n",authEnd);
authLen = authEnd-authStart;
encodedAuthString = SLHAlloc(slh,authLen+1);
authString = SLHAlloc(slh,authLen+1);
Expand Down Expand Up @@ -2913,8 +2913,8 @@ int extractBearerToken(HttpRequest *request, HttpHeader *authHeader) {
AUTH_TRACE("start tokenEnd loop\n");
while ((tokenEnd < headerLength) && (ebcdicHeader[tokenEnd] > 0x041)){
tokenEnd++;
zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG3, "tokenEnd=%d\n", tokenEnd);
}
zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG3, "tokenEnd=%d\n", tokenEnd);
const int tokenLen = tokenEnd - tokenStart;
AUTH_TRACE("bearer token length = %d\n", tokenLen);

Expand Down

0 comments on commit 3748d94

Please sign in to comment.