Skip to content

Commit

Permalink
fix: remove slash char from error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Jan 4, 2024
1 parent 73d5212 commit 1bb300b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023, Salesforce.com, Inc.
Copyright (c) 2024, Salesforce.com, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion src/webOAuthServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class WebOAuthServer extends AsyncCreatable<WebOAuthServer.Options> {
private parseAuthCodeFromRequest(response: http.ServerResponse, request: WebOAuthServer.Request): Nullable<string> {
if (!this.validateState(request)) {
const error = new SfError('urlStateMismatch');
this.webServer.sendError(400, `${error.message}\n`, response);
this.webServer.sendError(400, error.message, response);
this.closeRequest(request);
this.logger.warn('urlStateMismatchAttempt detected.');
if (!get(this.webServer.server, 'urlStateMismatchAttempt')) {
Expand Down

2 comments on commit 1bb300b

@svc-cli-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logger Benchmarks - ubuntu-latest

Benchmark suite Current: 1bb300b Previous: e68014a Ratio
Child logger creation 453953 ops/sec (±2.08%) 477310 ops/sec (±1.07%) 1.05
Logging a string on root logger 716372 ops/sec (±9.23%) 818666 ops/sec (±8.46%) 1.14
Logging an object on root logger 584520 ops/sec (±8.87%) 601985 ops/sec (±8.65%) 1.03
Logging an object with a message on root logger 10433 ops/sec (±200.85%) 7985 ops/sec (±213.75%) 0.77
Logging an object with a redacted prop on root logger 374209 ops/sec (±13.57%) 439467 ops/sec (±9.10%) 1.17
Logging a nested 3-level object on root logger 368413 ops/sec (±7.68%) 356648 ops/sec (±8.71%) 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@svc-cli-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logger Benchmarks - windows-latest

Benchmark suite Current: 1bb300b Previous: e68014a Ratio
Child logger creation 332891 ops/sec (±0.53%) 342753 ops/sec (±0.53%) 1.03
Logging a string on root logger 827720 ops/sec (±7.10%) 787895 ops/sec (±6.06%) 0.95
Logging an object on root logger 598338 ops/sec (±6.19%) 621256 ops/sec (±8.79%) 1.04
Logging an object with a message on root logger 8222 ops/sec (±201.49%) 4008 ops/sec (±217.43%) 0.49
Logging an object with a redacted prop on root logger 473796 ops/sec (±6.60%) 432917 ops/sec (±11.01%) 0.91
Logging a nested 3-level object on root logger 323221 ops/sec (±6.30%) 321768 ops/sec (±5.19%) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.