Skip to content
Myr

fix: replace deprecated trimRight() with trimEnd() (#7265)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TEJ · committed by GitHub · parent 90ec620 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/request.js+1 added-1 removed
422 unmodified lines
423 val = this.get('Host');424 } else if (val.indexOf(',') !== -1) {425 // Note: X-Forwarded-Host is normally only ever a426 // single value, but this is to be safe.427 val = val.substring(0, val.indexOf(',')).trimRight()427 val = val.substring(0, val.indexOf(',')).trimEnd()428 }429430 return val || undefined;431});
96 unmodified lines