Skip to content

Commit ac3a403

Browse files
Sync shared code from runtime (#34755)
Co-authored-by: Tratcher <Tratcher@users.noreply.github.com>
1 parent bad82b8 commit ac3a403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shared/runtime/Http3/QPack/QPackEncoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private static void EncodeValueStringPart(string s, Span<byte> buffer)
317317

318318
if (ch > 127)
319319
{
320-
throw new QPackEncodingException("ASCII header value.");
320+
throw new QPackEncodingException(SR.net_http_request_invalid_char_encoding);
321321
}
322322

323323
buffer[i] = (byte)ch;
@@ -402,4 +402,4 @@ private static bool EncodeHeaderBlockPrefix(Span<byte> destination, out int byte
402402
return true;
403403
}
404404
}
405-
}
405+
}

0 commit comments

Comments
 (0)