Skip to content

Commit

Permalink
more usages
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Aug 17, 2023
1 parent 7cc4643 commit 3f43cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/workerd/api/http.c++
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ Body::ExtractedBody Body::extractBody(jsg::Lock& js, Initializer init) {
return kj::mv(stream);
}
KJ_CASE_ONEOF(text, kj::String) {
contentType = MimeType::PLAINTEXT.toString();
contentType = MimeType::PLAINTEXT_STRING;
buffer = kj::mv(text);
}
KJ_CASE_ONEOF(bytes, kj::Array<byte>) {
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/kv.c++
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ jsg::Promise<void> KvNamespace::put(

KJ_SWITCH_ONEOF(supportedBody) {
KJ_CASE_ONEOF(text, kj::String) {
headers.set(kj::HttpHeaderId::CONTENT_TYPE, MimeType::PLAINTEXT.toString());
headers.set(kj::HttpHeaderId::CONTENT_TYPE, MimeType::PLAINTEXT_STRING);
expectedBodySize = uint64_t(text.size());
}
KJ_CASE_ONEOF(data, kj::Array<byte>) {
Expand Down

0 comments on commit 3f43cfd

Please sign in to comment.