Skip to content

Commit

Permalink
got to green
Browse files Browse the repository at this point in the history
  • Loading branch information
PodaruDragos authored and dcavanagh committed Sep 1, 2021
1 parent 2d7a59d commit b25fae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/results/CreatedNegotiatedContentResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class CreatedNegotiatedContentResult<T> implements interfaces.IHt

public async executeAsync() {
const response = new HttpResponseMessage(CREATED);
response.content = new StringContent(JSON.stringify(this.content), "application/json");
response.content = new StringContent(JSON.stringify(this.content));
response.headers["location"] = this.location.toString();
return response;
}
Expand Down
2 changes: 1 addition & 1 deletion src/results/OkNegotiatedContentResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class OkNegotiatedContentResult<T> implements interfaces.IHttpAct

public async executeAsync() {
const response = new HttpResponseMessage(OK);
response.content = new StringContent(JSON.stringify(this.content), "application/json");
response.content = new StringContent(JSON.stringify(this.content));
return response;
}
}

0 comments on commit b25fae5

Please sign in to comment.