Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Jan 16, 2025
1 parent d6b3aac commit 29821ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/axis-discovery-ssdp/src/sockets/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ export class Message {
throw new Error('SSDP message is not specifying the method.');
}

this.headers.set('method', method);
headers.set('method', method);

for (const line of lines) {
const indexOfValueSeparator = line.indexOf(':');
const name = line.slice(0, indexOfValueSeparator).trim();
const value = line.slice(indexOfValueSeparator + 1, line.length).trim();
const value = line.slice(indexOfValueSeparator + 1).trim();

this.headers.set(name, value);
headers.set(name, value);
}

return headers;
Expand Down

0 comments on commit 29821ef

Please sign in to comment.