Skip to content

Commit c34e279

Browse files
committed
Allow even more cases of StringView
1 parent f570025 commit c34e279

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/HttpResponseWrapper.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ struct HttpResponseWrapper {
369369
static void res_writeStatus(const FunctionCallbackInfo<Value> &args) {
370370
auto *res = getHttpResponse<SSL>(args);
371371
if (res) {
372-
NativeString data(args.GetIsolate(), args[0]);
372+
NativeString<true> data(args.GetIsolate(), args[0]);
373373
if (data.isInvalid(args)) {
374374
return;
375375
}
@@ -409,7 +409,7 @@ struct HttpResponseWrapper {
409409
static void res_end(const FunctionCallbackInfo<Value> &args) {
410410
auto *res = getHttpResponse<PROTOCOL>(args);
411411
if (res) {
412-
NativeString data(args.GetIsolate(), args[0]);
412+
NativeString<true> data(args.GetIsolate(), args[0]);
413413
if (data.isInvalid(args)) {
414414
return;
415415
}
@@ -434,7 +434,7 @@ struct HttpResponseWrapper {
434434
Isolate *isolate = args.GetIsolate();
435435
auto *res = getHttpResponse<PROTOCOL>(args);
436436
if (res) {
437-
NativeString data(args.GetIsolate(), args[0]);
437+
NativeString<true> data(args.GetIsolate(), args[0]);
438438
if (data.isInvalid(args)) {
439439
return;
440440
}
@@ -467,7 +467,7 @@ struct HttpResponseWrapper {
467467
Isolate *isolate = args.GetIsolate();
468468
auto *res = getHttpResponse<PROTOCOL>(args);
469469
if (res) {
470-
NativeString data(args.GetIsolate(), args[0]);
470+
NativeString<true> data(args.GetIsolate(), args[0]);
471471
if (data.isInvalid(args)) {
472472
return;
473473
}

0 commit comments

Comments
 (0)