Skip to content

Commit

Permalink
fix non lower case ?wsdl handling (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulish authored Oct 21, 2020
1 parent ec53c51 commit d1790b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class Server extends EventEmitter {

if (req.method === 'GET') {

if (reqQuery && reqQuery.startsWith('?wsdl')) {
if (reqQuery && reqQuery.toLowerCase().startsWith('?wsdl')) {
if (typeof this.log === 'function') {
this.log('info', 'Wants the WSDL');
}
Expand Down

0 comments on commit d1790b5

Please sign in to comment.