Skip to content

Commit

Permalink
Fixed a bug with the 'translate' header
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 12, 2017
1 parent d5d6b5f commit ccdd7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/MethodCallArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var MethodCallArgs = (function () {
this.exit = exit;
this.callback = callback;
this.contentLength = parseInt(this.findHeader('Content-length', '0'), 10);
this.isSource = this.findHeader('source', 'F').toUpperCase() === 'T' || this.findHeader('translate', 'F').toUpperCase() === 'T';
this.isSource = this.findHeader('source', 'F').toUpperCase() === 'T' || this.findHeader('translate', 'T').toUpperCase() === 'F';
this.depth = parseInt(this.findHeader('Depth', '0'), 10);
this.host = this.findHeader('Host');
this.uri = url.parse(request.url).pathname;
Expand Down
2 changes: 1 addition & 1 deletion src/server/MethodCallArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class MethodCallArgs
public callback : () => void
) {
this.contentLength = parseInt(this.findHeader('Content-length', '0'), 10);
this.isSource = this.findHeader('source', 'F').toUpperCase() === 'T' || this.findHeader('translate', 'F').toUpperCase() === 'T';
this.isSource = this.findHeader('source', 'F').toUpperCase() === 'T' || this.findHeader('translate', 'T').toUpperCase() === 'F';
this.depth = parseInt(this.findHeader('Depth', '0'), 10);
this.host = this.findHeader('Host');

Expand Down

0 comments on commit ccdd7ed

Please sign in to comment.